CVE-2025-40211

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40211
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40211.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40211
Downstream
Published
2025-11-21T10:21:36.438Z
Modified
2025-11-28T02:35:38.867381Z
Summary
ACPI: video: Fix use-after-free in acpi_video_switch_brightness()
Details

In the Linux kernel, the following vulnerability has been resolved:

ACPI: video: Fix use-after-free in acpivideoswitch_brightness()

The switchbrightnesswork delayed work accesses device->brightness and device->backlight, freed by acpivideodevunregisterbacklight() during device removal.

If the work executes after acpivideobusunregisterbacklight() frees these resources, it causes a use-after-free when acpivideoswitch_brightness() dereferences device->brightness or device->backlight.

Fix this by calling canceldelayedworksync() for each device's switchbrightnesswork in acpivideobusremovenotifyhandler() after removing the notify handler that queues the work. This ensures the work completes before the memory is freed.

[ rjw: Changelog edit ]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40211.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7
Fixed
4e85246ec0d019dfba86ba54d841ef6694f97149
Fixed
de5fc93275a4a459fe2f7cb746984f2ab3e8292a
Fixed
293125536ef5521328815fa7c76d5f9eb1635659
Fixed
8f067aa59430266386b83c18b983ca583faa6a11

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.17.0
Fixed
6.6.117
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.58
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.8