Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97505 Overview
CVE-2026-97505 is a Linux kernel vulnerability in the PCI subsystem's sysfs interface. The __resource_resize_store() function permits writes to the resourceN_resize sysfs attribute without verifying caller capabilities. The kernel relied solely on file access permissions to gate this operation.
Resizing a PCI Base Address Register (BAR) alters device configuration and can disrupt active drivers. After an upcoming conversion to static attributes, the same code path will also trigger resource file updates through sysfs_update_groups(). The upstream fix adds an explicit CAP_SYS_ADMIN check to block unprivileged users from invoking BAR resize operations.
Critical Impact
A user with write access to the affected sysfs attribute could change PCI BAR sizes, destabilize active device drivers, and alter hardware resource layout on the system.
Affected Products
- Linux kernel versions containing the PCI resource resize sysfs attribute prior to the fix
- Distributions shipping the vulnerable PCI/sysfs code path
- Systems exposing resourceN_resize sysfs files on PCI devices
Discovery Timeline
- 2026-09-24 - CVE-2026-97505 published to the National Vulnerability Database
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97505
Vulnerability Analysis
The Linux kernel exposes a resourceN_resize sysfs attribute for PCI devices that support BAR resizing. Writing to this attribute invokes __resource_resize_store(), which reconfigures the device's memory window. Prior to the fix, the function enforced no capability check and depended entirely on the file's discretionary access controls.
This design is insufficient because BAR resize operations affect kernel state and bound device drivers. A caller with write access to the sysfs node could trigger reconfiguration without holding administrative privileges. The maintainers also note that an upcoming conversion to static sysfs attributes will cause the same path to call sysfs_update_groups(), broadening the operation's side effects.
The issue falls under [CWE-862] Missing Authorization. The vulnerability is a privilege and access control flaw rather than a memory-safety bug.
Root Cause
The root cause is a missing capability check inside __resource_resize_store(). The function treated sysfs file permissions as a sufficient authorization boundary for an operation that modifies PCI device configuration. Kernel subsystems that mutate hardware state typically require CAP_SYS_ADMIN to enforce privilege separation beyond filesystem ACLs.
Attack Vector
An attacker requires local access and write permission to the PCI device's resourceN_resize sysfs file. On systems where these attributes are reachable by non-root accounts through group ownership or ACL misconfiguration, the attacker can write a new size value and force BAR reconfiguration. The result is driver disruption, potential denial of service against the affected device, and altered hardware resource allocation.
The vulnerability is not remotely exploitable. See the upstream commits 25ec7f57, b722a607, and cbf0628c for the fix details.
// No verified exploit code is available for this issue.
// The fix adds a capability check equivalent to:
// if (!capable(CAP_SYS_ADMIN)) return -EPERM;
// inside __resource_resize_store() before performing BAR resize.
Detection Methods for CVE-2026-97505
Indicators of Compromise
- Unexpected writes to /sys/bus/pci/devices/*/resourceN_resize originating from non-root UIDs
- Kernel log entries indicating PCI BAR reconfiguration outside of maintenance windows
- Driver reinitialization or device reset events on PCI devices without a corresponding administrative change
Detection Strategies
- Audit sysfs write syscalls targeting PCI resourceN_resize attributes using auditd rules on /sys/bus/pci/devices
- Correlate kernel messages about PCI resource changes with the invoking process and user context
- Flag any process without CAP_SYS_ADMIN that opens PCI sysfs attributes for writing
Monitoring Recommendations
- Enable auditd rules that watch write operations against PCI sysfs resize attributes
- Baseline the inventory of PCI devices and BAR sizes, and alert on deviations
- Forward kernel ring buffer events to a centralized log platform for anomaly review
How to Mitigate CVE-2026-97505
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in commits 25ec7f57, b722a607, and cbf0628c
- Track distribution advisories and install vendor kernel updates when published
- Restrict write permissions on PCI resourceN_resize sysfs attributes to root only
Patch Information
The fix adds a CAP_SYS_ADMIN check at the entry of __resource_resize_store() so unprivileged callers receive -EPERM before any BAR mutation occurs. Review the patch series across the referenced commits and rebuild the kernel, or install a vendor-provided package that incorporates the backport.
Workarounds
- Verify that /sys/bus/pci/devices/*/resourceN_resize files are owned by root and mode 0600 or 0200
- Remove any udev rules or tmpfiles.d entries that broaden ownership or permissions of PCI sysfs resize attributes
- Constrain untrusted local accounts using mandatory access control profiles that deny write access to PCI sysfs paths
# Verify permissions on PCI resize sysfs attributes
find /sys/bus/pci/devices -name 'resource*_resize' -exec ls -l {} \;
# Restrict write access to root only if a misconfiguration is found
find /sys/bus/pci/devices -name 'resource*_resize' -exec chmod 0600 {} \;
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

