CVE-2026-97505

PCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Oct 30, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 91fa127794ac1c48069479b9d45eb4c7378c0e30 to before 0be4e21287e1e4865b9de498e1acc65b873f52f5Affected
  • 91fa127794ac1c48069479b9d45eb4c7378c0e30 to before d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62Affected
  • 91fa127794ac1c48069479b9d45eb4c7378c0e30 to before b722a607f858b9cd036075ea0efad553fb98e982Affected
  • 91fa127794ac1c48069479b9d45eb4c7378c0e30 to before cbf0628c0b7db86c5ce36451f088101546acbf1dAffected
  • 91fa127794ac1c48069479b9d45eb4c7378c0e30 to before 25ec7f57deceec633f27bc93b615f951e2ade814Affected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*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.