# CVE-2026-97505: PCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()

- Severity: not scored yet
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-09-24T16:04:54.215Z
- Modified: 2026-10-30T13:21:05.913Z
- Assigned by: Linux

## Description

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

PCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()

Currently, the __resource_resize_store() allows writing to the
resourceN_resize sysfs attribute to change a BAR's size without checking
for capabilities, currently relying only on the file access check.

Resizing a BAR modifies PCI device configuration and can disrupt active
drivers.  After the upcoming conversion to static attributes, it will also
trigger resource file updates via sysfs_update_groups().

Add a CAP_SYS_ADMIN check to prevent unprivileged users from performing BAR
resize operations.

(As written by CVE List.)

## Affected

- Linux Linux: from 91fa127794ac1c48069479b9d45eb4c7378c0e30 before 0be4e21287e1e4865b9de498e1acc65b873f52f5; from 91fa127794ac1c48069479b9d45eb4c7378c0e30 before d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62; from 91fa127794ac1c48069479b9d45eb4c7378c0e30 before b722a607f858b9cd036075ea0efad553fb98e982; from 91fa127794ac1c48069479b9d45eb4c7378c0e30 before cbf0628c0b7db86c5ce36451f088101546acbf1d; from 91fa127794ac1c48069479b9d45eb4c7378c0e30 before 25ec7f57deceec633f27bc93b615f951e2ade814; 6.1 (not affected: before 6.1; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/0be4e21287e1e4865b9de498e1acc65b873f52f5>
- <https://git.kernel.org/stable/c/d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62>
- <https://git.kernel.org/stable/c/b722a607f858b9cd036075ea0efad553fb98e982>
- <https://git.kernel.org/stable/c/cbf0628c0b7db86c5ce36451f088101546acbf1d>
- <https://git.kernel.org/stable/c/25ec7f57deceec633f27bc93b615f951e2ade814>

## Sources

- CVE List: [CVE-2026-97505](https://www.cve.org/CVERecord?id=CVE-2026-97505), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-97505](https://nvd.nist.gov/vuln/detail/CVE-2026-97505), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-97505 · Whole record: https://cve.day/CVE-2026-97505.json · Rebuilt by cve.day 2026-11-25T22:59:40.871Z
