# CVE-2024-53214: vfio/pci: Properly hide first-in-list PCIe extended capability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-28)
- **CWE:** CWE-129
- **Published:** 2024-12-27T13:49:59.555Z
- **Modified:** 2026-08-05T11:44:40.196Z

## Who should check

- Anyone running Linux \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 4464e5aa3aa4574063640f1082f7d7e323af8eb4; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 7d121f66b67921fb3b95e0ea9856bfba53733e91; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 0918f5643fc6c3f7801f4a22397d2cc09ba99207; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 9567bd34aa3b986736c290c5bcba47e0182ac47a; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 6c6502d944168cbd7e03a4a08ad6488f78d73485; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 06f2fcf49854ad05a09d09e0dbee6544fff04695; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 949bee8065a85a5c6607c624dc05b5bc17119699; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 1ef195178fb552478eb2587df4ad3be14ef76507; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< fe4bf8d0b6716a423b16495d55b35d3fe515905d
- Anyone running Linux 3.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

vfio/pci: Properly hide first-in-list PCIe extended capability

There are cases where a PCIe extended capability should be hidden from
the user. For example, an unknown capability (i.e., capability with ID
greater than PCI\_EXT\_CAP\_ID\_MAX) or a capability that is intentionally
chosen to be hidden from the user.

Hiding a capability is done by virtualizing and modifying the 'Next
Capability Offset' field of the previous capability so it points to the
capability after the one that should be hidden.

The special case where the first capability in the list should be hidden
is handled differently because there is no previous capability that can
be modified. In this case, the capability ID and version are zeroed
while leaving the next pointer intact. This hides the capability and
leaves an anchor for the rest of the capability list.

However, today, hiding the first capability in the list is not done
properly if the capability is unknown, as struct
vfio\_pci\_core\_device-\>pci\_config\_map is set to the capability ID during
initialization but the capability ID is not properly checked later when
used in vfio\_config\_do\_rw(). This leads to the following warning \[1\] and
to an out-of-bounds access to ecap\_perms array.

Fix it by checking cap\_id in vfio\_config\_do\_rw(), and if it is greater
than PCI\_EXT\_CAP\_ID\_MAX, use an alternative struct perm\_bits for direct
read only access instead of the ecap\_perms array.

Note that this is safe since the above is the only case where cap\_id can
exceed PCI\_EXT\_CAP\_ID\_MAX (except for the special capabilities, which
are already checked before).

\[1\]

WARNING: CPU: 118 PID: 5329 at drivers/vfio/pci/vfio\_pci\_config.c:1900 vfio\_pci\_config\_rw+0x395/0x430 \[vfio\_pci\_core\]
CPU: 118 UID: 0 PID: 5329 Comm: simx-qemu-syste Not tainted 6.12.0+ \#1
(snip)
Call Trace:
 \<TASK\>
 ? show\_regs+0x69/0x80
 ? \_\_warn+0x8d/0x140
 ? vfio\_pci\_config\_rw+0x395/0x430 \[vfio\_pci\_core\]
 ? report\_bug+0x18f/0x1a0
 ? handle\_bug+0x63/0xa0
 ? exc\_invalid\_op+0x19/0x70
 ? asm\_exc\_invalid\_op+0x1b/0x20
 ? vfio\_pci\_config\_rw+0x395/0x430 \[vfio\_pci\_core\]
 ? vfio\_pci\_config\_rw+0x244/0x430 \[vfio\_pci\_core\]
 vfio\_pci\_rw+0x101/0x1b0 \[vfio\_pci\_core\]
 vfio\_pci\_core\_read+0x1d/0x30 \[vfio\_pci\_core\]
 vfio\_device\_fops\_read+0x27/0x40 \[vfio\]
 vfs\_read+0xbd/0x340
 ? vfio\_device\_fops\_unl\_ioctl+0xbb/0x740 \[vfio\]
 ? \_\_rseq\_handle\_notify\_resume+0xa4/0x4b0
 \_\_x64\_sys\_pread64+0x96/0xc0
 x64\_sys\_call+0x1c3d/0x20d0
 do\_syscall\_64+0x4d/0x120
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

## Affected and fixed versions

- Linux: \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 4464e5aa3aa4574063640f1082f7d7e323af8eb4; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 7d121f66b67921fb3b95e0ea9856bfba53733e91; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 0918f5643fc6c3f7801f4a22397d2cc09ba99207; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 9567bd34aa3b986736c290c5bcba47e0182ac47a; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 6c6502d944168cbd7e03a4a08ad6488f78d73485; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 06f2fcf49854ad05a09d09e0dbee6544fff04695; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 949bee8065a85a5c6607c624dc05b5bc17119699; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 1ef195178fb552478eb2587df4ad3be14ef76507; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< fe4bf8d0b6716a423b16495d55b35d3fe515905d (cvelist)
- Linux: 3.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53214. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53214.md
Affected: Linux >= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, < 4464e5aa3aa4574063640f1082f7d7e323af8eb4; >= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, < 7d121f66b67921fb3b95e0ea9856bfba53733e91; >= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, < 0918f5643fc6c3f7801f4a22397d2cc09ba99207; >= 89e1f7d4c66d85f42c3d52e…
Fixed in: Linux 4464e5aa3aa4574063640f1082f7d7e323af8eb4, Linux 7d121f66b67921fb3b95e0ea9856bfba53733e91, Linux 0918f5643fc6c3f7801f4a22397d2cc09ba99207, Linux 9567bd34aa3b986736c290c5bcba47e0182ac47a, Linux 6c6502d944168cbd7e03a4a08ad6488f78d73485, Linux 06f2fcf49854ad05a09d09e0dbee6544fff04695, Linux 949be…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53214 being exploited?

There is no confirmed exploitation: CVE-2024-53214 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-53214?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-53214?

Linux \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 4464e5aa3aa4574063640f1082f7d7e323af8eb4; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 7d121f66b67921fb3b95e0ea9856bfba53733e91; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 0918f5643fc6c3f7801f4a22397d2cc09ba99207; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 9567bd34aa3b986736c290c5bcba47e0182ac47a; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 6c6502d944168cbd7e03a4a08ad6488f78d73485; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 06f2fcf49854ad05a09d09e0dbee6544fff04695; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 949bee8065a85a5c6607c624dc05b5bc17119699; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< 1ef195178fb552478eb2587df4ad3be14ef76507; \>= 89e1f7d4c66d85f42c3d52ea3866eb10cadf6153, \< fe4bf8d0b6716a423b16495d55b35d3fe515905d; Linux 3.6.

### Is there a fix for CVE-2024-53214?

Yes. Fixed in Linux 4464e5aa3aa4574063640f1082f7d7e323af8eb4, Linux 7d121f66b67921fb3b95e0ea9856bfba53733e91, Linux 0918f5643fc6c3f7801f4a22397d2cc09ba99207, Linux 9567bd34aa3b986736c290c5bcba47e0182ac47a, Linux 6c6502d944168cbd7e03a4a08ad6488f78d73485, Linux 06f2fcf49854ad05a09d09e0dbee6544fff04695, Linux 949bee8065a85a5c6607c624dc05b5bc17119699, Linux 1ef195178fb552478eb2587df4ad3be14ef76507. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-53214?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4464e5aa3aa4574063640f1082f7d7e323af8eb4>
- patch: <https://git.kernel.org/stable/c/7d121f66b67921fb3b95e0ea9856bfba53733e91>
- patch: <https://git.kernel.org/stable/c/0918f5643fc6c3f7801f4a22397d2cc09ba99207>
- patch: <https://git.kernel.org/stable/c/9567bd34aa3b986736c290c5bcba47e0182ac47a>
- patch: <https://git.kernel.org/stable/c/6c6502d944168cbd7e03a4a08ad6488f78d73485>
- patch: <https://git.kernel.org/stable/c/06f2fcf49854ad05a09d09e0dbee6544fff04695>
- patch: <https://git.kernel.org/stable/c/949bee8065a85a5c6607c624dc05b5bc17119699>
- patch: <https://git.kernel.org/stable/c/1ef195178fb552478eb2587df4ad3be14ef76507>
- patch: <https://git.kernel.org/stable/c/fe4bf8d0b6716a423b16495d55b35d3fe515905d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53214>

HTML: <https://flawdb.com/CVE-2024-53214> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53214>
