CVE-2026-72487

PCI: Check ROM header and data structure addr before accessing

State
Published
Severity
7.7 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

Description

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

PCI: Check ROM header and data structure addr before accessing

We meet a crash when running stress-ng on x86_64 machine:

BUG: unable to handle page fault for address: ffa0000007f40000 RIP: 0010:pci_get_rom_size+0x52/0x220 Call Trace: <TASK> pci_map_rom+0x80/0x130 pci_read_rom+0x4b/0xe0 kernfs_file_read_iter+0x96/0x180 vfs_read+0x1b1/0x300

Our analysis reveals that the ROM space's start address is 0xffa0000007f30000, and size is 0x10000. Because of broken ROM space, before calling readl(pds), the pds's value is 0xffa0000007f3ffff, which is already pointed to the ROM space end, invoking readl() would read 4 bytes therefore cause an out-of-bounds access and trigger a crash. Fix this by adding image header and data structure checking.

We also found another crash on arm64 machine:

Unable to handle kernel paging request at virtual address ffff8000dd1393ff Mem abort info: ESR = 0x0000000096000021 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x21: alignment fault

The call trace is the same with x86_64, but the crash reason is that the data structure addr is not aligned with 4, and arm64 machine report "alignment fault". Fix this by adding alignment checking.

[bhelgaas: shorten function names, wrap comments]

Scores

CVSSScoreVectorSource
3.17.7 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before cd5b242d5848369b9e957340a7e30adee7b6763dAffected
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before 4997873e3abbad47a9e1e4abd05f045f77a74f22Affected
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before 724042f8f98d2594b9d164549fd4292c6bd58120Affected
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before 1d495446ec7ace5b61da366ffb161ee8319dd9a2Affected
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before 721ad5b72448b5065ed309017ab563205f162404Affected
  • 47b975d234eac39f3a72e5496d5f6158d8b806d1 to before 538796b807fcfb81b2ce40cc97a614fd8588feb5Affected
LinuxLinux
  • 4.5Affected
  • before 4.5Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.