VDB

CVE-2025-40211

CVE-2025-40211 PUBLISHED

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.

PackageEcosystemFixed in
kernel-libbpfAmazon Linux1:6.1.159-181.297.amzn2023
kernel-livepatch-6.12.58-82.121Amazon Linux1:1.0-0.amzn2023
kernelAmazon Linux1:6.1.159-181.297.amzn2023
kernel-modules-extraAmazon Linux1:6.1.159-181.297.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.58-82.121.amzn2023
kernel-toolsAmazon Linux1:6.1.159-181.297.amzn2023

Affected products

VendorProductVersions
LinuxLinux8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7
LinuxLinux3.17, 0, 5.4.302
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.12.58-82.1210
amazon:2023kernel0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-tools0
LinuxLinux8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7, 8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7
amazon:2023kernel6.120
amazon:2023kernel6.12-headers0
amazon:2023bpftool6.120
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-libbpf-static0
amazon:2023bpftool0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-livepatch-6.1.159-181.2970

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›