Skip to content
Heist/ feed
Back to feed
UnratedFix available

PCI: keystone: Fix if-statement expression in ks_pcie_quirk()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: PCI: keystone: Fix if-statement expression in ks_pcie_quirk() This code accidentally uses && where || was intended. It potentially results in a NULL dereference. Thus, fix the if-statement expression to use the correct condition. [kwilczynski: commit log]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.227, 5.15.168, 5.4.285, 6.1.113, 6.10.13, 6.11.2, 6.6.54
CVEs
CVE-2024-47756
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:15 UTC · Revision 1

Source evidence

PCI: keystone: Fix if-statement expression in ks_pcie_quirk()

core-osv · Original source

Published 21 Oct 2024, 12:14 UTC

In the Linux kernel, the following vulnerability has been resolved: PCI: keystone: Fix if-statement expression in ks_pcie_quirk() This code accidentally uses && where || was intended. It potentially results in a NULL dereference. Thus, fix the if-statement expression to use the correct condition. [kwilczynski: commit log]

osv:CVE-2024-47756

Kernel

Fixed versions: 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54, 6.10.13, 6.11.2

Complete source record
{
  "id": "9e55e6b7db7cce4d481f2fe3aa672d3bfc9284e7bb6add1305965be03a2c15de",
  "url": "https://osv.dev/vulnerability/CVE-2024-47756",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PCI: keystone: Fix if-statement expression in ks_pcie_quirk()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: PCI: keystone: Fix if-statement expression in ks_pcie_quirk() This code accidentally uses && where || was intended. It potentially results in a NULL dereference. Thus, fix the if-statement expression to use the correct condition. [kwilczynski: commit log]",
    "evidence": "osv:CVE-2024-47756",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.285",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.227",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-47756",
      "aliases": [
        "CVE-2024-47756"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cfb006e185f64edbbdf7869eac352442bc76b8f6"
                },
                {
                  "fixed": "9c9afc3e75069fcfb067727973242cfbf00dd7eb"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ebbdbbc580c1695dec283d0ba6448729dc993246"
                },
                {
                  "fixed": "c289903b7a216df5ea6e1850ddf1b958eea9921d"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "135843c351c08df72bdd4b4ebea53c8052a76881"
                },
                {
                  "fixed": "dc5aeba07395c8dfa29bb878c8ce4d5180427221"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "af218c803fe298ddf00abef331aa526b20d7ea61"
                },
                {
                  "fixed": "23838bef2adb714ec37b2d6141dccf4a3a70bdef"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "576d0fb6f8d4bd4695e70eee173a1b9c7bae9572"
                },
                {
                  "fixed": "e85ab507882db165c10a858d7f685a0a38f0312e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dd47051c76c8acd8cb983f01b4d1265da29cb66a"
                },
                {
                  "fixed": "72210e52e19a27f615e0b5273d2bf012d0dc318d"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "86f271f22bbb6391410a07e08d6ca3757fda01fa"
                },
                {
                  "fixed": "2171c5cb2fbc3e03af7e8116cd58736c09328655"
                },
                {
                  "fixed": "6188a1c762eb9bbd444f47696eda77a5eae6207a"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.4.284"
                },
                {
                  "fixed": "5.4.285"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.10.226"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.167"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.1.110"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.6.51"
                },
                {
                  "fixed": "6.6.54"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.10.10"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            }
          ],
          "versions": [
            "v5.4.284",
            "v5.10.226",
            "v5.15.167",
            "v6.1.112",
            "v6.1.111",
            "v6.1.110",
            "v6.6.53",
            "v6.6.52",
            "v6.6.51",
            "v6.10.12",
            "v6.10.11",
            "v6.10.10"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47756.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.285"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47756.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.406860144Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2171c5cb2fbc3e03af7e8116cd58736c09328655",
        "https://git.kernel.org/stable/c/23838bef2adb714ec37b2d6141dccf4a3a70bdef",
        "https://git.kernel.org/stable/c/6188a1c762eb9bbd444f47696eda77a5eae6207a",
        "https://git.kernel.org/stable/c/72210e52e19a27f615e0b5273d2bf012d0dc318d",
        "https://git.kernel.org/stable/c/9c9afc3e75069fcfb067727973242cfbf00dd7eb",
        "https://git.kernel.org/stable/c/c289903b7a216df5ea6e1850ddf1b958eea9921d",
        "https://git.kernel.org/stable/c/dc5aeba07395c8dfa29bb878c8ce4d5180427221",
        "https://git.kernel.org/stable/c/e85ab507882db165c10a858d7f685a0a38f0312e",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47756.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47756",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47756.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47756",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 504570,
  "published_at": "2024-10-21T12:14:19.768+00:00"
}