PCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62, Kernel 0be4e21287e1e4865b9de498e1acc65b873f52f5, Kernel 25ec7f57deceec633f27bc93b615f951e2ade814 and 6 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=91fa127794ac1c48069479b9d45eb4c7378c0e30 <d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62, >=91fa127794ac1c48069479b9d45eb4c7378c0e30 <0be4e21287e1e4865b9de498e1acc65b873f52f5, >=91fa127794ac1c48069479b9d45eb4c7378c0e30 <25ec7f57deceec633f27bc93b615f951e2ade814, >=91fa127794ac1c48069479b9d45eb4c7378c0e30 <b722a607f858b9cd036075ea0efad553fb98e982, >=91fa127794ac1c48069479b9d45eb4c7378c0e30 <cbf0628c0b7db86c5ce36451f088101546acbf1d, =6.1 | d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62, 0be4e21287e1e4865b9de498e1acc65b873f52f5, 25ec7f57deceec633f27bc93b615f951e2ade814, b722a607f858b9cd036075ea0efad553fb98e982, cbf0628c0b7db86c5ce36451f088101546acbf1d |
| linux-kernel: Kernel | >=6.13.0 <6.18.53, >=6.2.0 <6.6.160, >=6.7.0 <6.12.111, >=6.1.0 <6.1.191 | 6.18.53, 6.6.160, 6.12.111, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket