# CVE-2024-47756: PCI: keystone: Fix if-statement expression in ks_pcie_quirk()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-10-21T12:14:19.768Z
- Modified: 2026-06-17T07:57:41.770Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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]

(As written by CVE List.)

## Affected

- Linux Linux: from cfb006e185f64edbbdf7869eac352442bc76b8f6 before 9c9afc3e75069fcfb067727973242cfbf00dd7eb; from ebbdbbc580c1695dec283d0ba6448729dc993246 before c289903b7a216df5ea6e1850ddf1b958eea9921d; from 135843c351c08df72bdd4b4ebea53c8052a76881 before dc5aeba07395c8dfa29bb878c8ce4d5180427221; from af218c803fe298ddf00abef331aa526b20d7ea61 before 23838bef2adb714ec37b2d6141dccf4a3a70bdef; from 576d0fb6f8d4bd4695e70eee173a1b9c7bae9572 before e85ab507882db165c10a858d7f685a0a38f0312e; from dd47051c76c8acd8cb983f01b4d1265da29cb66a before 72210e52e19a27f615e0b5273d2bf012d0dc318d; from 86f271f22bbb6391410a07e08d6ca3757fda01fa before 2171c5cb2fbc3e03af7e8116cd58736c09328655; from 86f271f22bbb6391410a07e08d6ca3757fda01fa before 6188a1c762eb9bbd444f47696eda77a5eae6207a; from 5.4.284 before 5.4.285; from 5.10.226 before 5.10.227; from 5.15.167 before 5.15.168; from 6.1.110 before 6.1.113; and 3 more (not affected: before 6.11; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.4.284 before 5.5; from 6.1.110 before 6.1.113; from 6.6.51 before 6.6.54; from 6.10.10 before 6.10.13; from 6.11 before 6.11.2; 5.10.226; 5.15.167

## References

- <https://git.kernel.org/stable/c/9c9afc3e75069fcfb067727973242cfbf00dd7eb>
- <https://git.kernel.org/stable/c/c289903b7a216df5ea6e1850ddf1b958eea9921d> (patch)
- <https://git.kernel.org/stable/c/dc5aeba07395c8dfa29bb878c8ce4d5180427221> (patch)
- <https://git.kernel.org/stable/c/23838bef2adb714ec37b2d6141dccf4a3a70bdef> (patch)
- <https://git.kernel.org/stable/c/e85ab507882db165c10a858d7f685a0a38f0312e> (patch)
- <https://git.kernel.org/stable/c/72210e52e19a27f615e0b5273d2bf012d0dc318d> (patch)
- <https://git.kernel.org/stable/c/2171c5cb2fbc3e03af7e8116cd58736c09328655> (patch)
- <https://git.kernel.org/stable/c/6188a1c762eb9bbd444f47696eda77a5eae6207a> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-47756](https://www.cve.org/CVERecord?id=CVE-2024-47756), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-47756](https://nvd.nist.gov/vuln/detail/CVE-2024-47756), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47756 · Whole record: https://cve.day/CVE-2024-47756.json · Rebuilt by cve.day 2026-11-25T22:58:47.003Z
