{"id":"CVE-2026-97505","aliases":["CVE-2026-97505"],"related":[],"kind":"vulnerability","state":"published","title":"PCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()\n\nCurrently, the __resource_resize_store() allows writing to the\nresourceN_resize sysfs attribute to change a BAR's size without checking\nfor capabilities, currently relying only on the file access check.\n\nResizing a BAR modifies PCI device configuration and can disrupt active\ndrivers.  After the upcoming conversion to static attributes, it will also\ntrigger resource file updates via sysfs_update_groups().\n\nAdd a CAP_SYS_ADMIN check to prevent unprivileged users from performing BAR\nresize operations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/sysfs: Add CAP_SYS_ADMIN check to __resource_resize_store()\n\nCurrently, the __resource_resize_store() allows writing to the\nresourceN_resize sysfs attribute to change a BAR's size without checking\nfor capabilities, currently relying only on the file access check.\n\nResizing a BAR modifies PCI device configuration and can disrupt active\ndrivers.  After the upcoming conversion to static attributes, it will also\ntrigger resource file updates via sysfs_update_groups().\n\nAdd a CAP_SYS_ADMIN check to prevent unprivileged users from performing BAR\nresize operations.","source":"cvelist"}],"published":"2026-09-24T16:04:54.215Z","modified":"2026-10-30T13:21:05.913Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"91fa127794ac1c48069479b9d45eb4c7378c0e30","fixed":"0be4e21287e1e4865b9de498e1acc65b873f52f5","status":"affected"},{"type":"git","introduced":"91fa127794ac1c48069479b9d45eb4c7378c0e30","fixed":"d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62","status":"affected"},{"type":"git","introduced":"91fa127794ac1c48069479b9d45eb4c7378c0e30","fixed":"b722a607f858b9cd036075ea0efad553fb98e982","status":"affected"},{"type":"git","introduced":"91fa127794ac1c48069479b9d45eb4c7378c0e30","fixed":"cbf0628c0b7db86c5ce36451f088101546acbf1d","status":"affected"},{"type":"git","introduced":"91fa127794ac1c48069479b9d45eb4c7378c0e30","fixed":"25ec7f57deceec633f27bc93b615f951e2ade814","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0be4e21287e1e4865b9de498e1acc65b873f52f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d02dd7ce8e52b66b7d3b6eca2a7d81e7f5b10a62","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b722a607f858b9cd036075ea0efad553fb98e982","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cbf0628c0b7db86c5ce36451f088101546acbf1d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25ec7f57deceec633f27bc93b615f951e2ade814","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97505","url":"https://www.cve.org/CVERecord?id=CVE-2026-97505","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:07.198Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97505","licence":"Public domain","modified":"2026-10-30T13:21:05.913Z"}],"updatedAt":"2026-11-25T22:59:40.871Z","epss":{"score":0.00157,"percentile":0.05108,"date":"2026-12-01T12:00:22.000Z"}}