CVE-2025-40211
ACPI: video: Fix use-after-free in acpi_video_switch_brightness()
Check your servers for CVE-2025-40211
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40211 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ACPI: video: Fix use-after-free in acpi_video_switch_brightness()
The switch_brightness_work delayed work accesses device->brightness and device->backlight, freed by acpi_video_dev_unregister_backlight() during device removal.
If the work executes after acpi_video_bus_unregister_backlight() frees these resources, it causes a use-after-free when acpi_video_switch_brightness() dereferences device->brightness or device->backlight.
Fix this by calling cancel_delayed_work_sync() for each device's switch_brightness_work in acpi_video_bus_remove_notify_handler() after removing the notify handler that queues the work. This ensures the work completes before the memory is freed.
[ rjw: Changelog edit ]
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before 3f803ccf5a0c043e7c8b83f6665b082401fc8bee affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before ba1704316492a0496c69334338ea1fdbf4c2fd34 affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before bc78a4f51d548c1ccc3d1967c2b394bf687c86e9 affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before a63a5b6fb508d78fe57ae3b159d9ef3af7ba80e9 affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before 4e85246ec0d019dfba86ba54d841ef6694f97149 affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before de5fc93275a4a459fe2f7cb746984f2ab3e8292a affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before 293125536ef5521328815fa7c76d5f9eb1635659 affected from 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, before 8f067aa59430266386b83c18b983ca583faa6a11
Other versions: unaffected
|
| Linux |
affected 3.17 unaffected before 3.17 unaffected from 5.4.302 up to and including 5.4.* unaffected from 5.10.247 up to and including 5.10.* unaffected from 5.15.197 up to and including 5.15.* unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.117 up to and including 6.6.* unaffected from 6.12.58 up to and including 6.12.* unaffected from 6.17.8 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40211 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40211
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40211
trivy image --scanners vuln IMAGE | grep CVE-2025-40211
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3f803ccf5a0c043e7c8b83f6665b082401fc8bee git.kernel.org
- https://git.kernel.org/stable/c/ba1704316492a0496c69334338ea1fdbf4c2fd34 git.kernel.org
- https://git.kernel.org/stable/c/bc78a4f51d548c1ccc3d1967c2b394bf687c86e9 git.kernel.org
- https://git.kernel.org/stable/c/a63a5b6fb508d78fe57ae3b159d9ef3af7ba80e9 git.kernel.org
- https://git.kernel.org/stable/c/4e85246ec0d019dfba86ba54d841ef6694f97149 git.kernel.org
- https://git.kernel.org/stable/c/de5fc93275a4a459fe2f7cb746984f2ab3e8292a git.kernel.org
- https://git.kernel.org/stable/c/293125536ef5521328815fa7c76d5f9eb1635659 git.kernel.org
- https://git.kernel.org/stable/c/8f067aa59430266386b83c18b983ca583faa6a11 git.kernel.org
Source: the record CVE-2025-40211 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse