CVE-2025-40211
ACPI: video: Fix use-after-free in acpi_video_switch_brightness()
Reported by linux · Published November 21, 2025
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 ]
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-livepatch-6.12.58-82.121 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7 |
| Linux | Linux | 3.17, 0, 5.4.302 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.12.58-82.121 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-tools | 0 |
| Linux | Linux | 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.159-181.297 | 0 |
…and 12 more
Timeline
- Nov 20, 2025 CVE Published
- Nov 21, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (107 in total, the first dated here)
- Mar 29, 2026 Security Advisory (146 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40211
vulnetix vdb fixes CVE-2025-40211
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40211/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart