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 ]
[
{
"id": "CVE-2025-40211-364df84e",
"target": {
"file": "drivers/acpi/acpi_video.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"46737425076056931529472650299656444478",
"44114503307229988536831366356639433334",
"263086076541670428683149551265781145215",
"205167215832380539388852212834685235887",
"149641711002855429951983053604018396448"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f067aa59430266386b83c18b983ca583faa6a11",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-4a45c150",
"target": {
"file": "drivers/acpi/acpi_video.c",
"function": "acpi_video_bus_remove_notify_handler"
},
"digest": {
"length": 304.0,
"function_hash": "23242818797686687852337674532204008055"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de5fc93275a4a459fe2f7cb746984f2ab3e8292a",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-753690bd",
"target": {
"file": "drivers/acpi/acpi_video.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"46737425076056931529472650299656444478",
"44114503307229988536831366356639433334",
"263086076541670428683149551265781145215",
"205167215832380539388852212834685235887",
"149641711002855429951983053604018396448"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e85246ec0d019dfba86ba54d841ef6694f97149",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-95cb3d04",
"target": {
"file": "drivers/acpi/acpi_video.c",
"function": "acpi_video_bus_remove_notify_handler"
},
"digest": {
"length": 304.0,
"function_hash": "23242818797686687852337674532204008055"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@293125536ef5521328815fa7c76d5f9eb1635659",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-b474a058",
"target": {
"file": "drivers/acpi/acpi_video.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"46737425076056931529472650299656444478",
"44114503307229988536831366356639433334",
"263086076541670428683149551265781145215",
"205167215832380539388852212834685235887",
"149641711002855429951983053604018396448"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@293125536ef5521328815fa7c76d5f9eb1635659",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-c3a24176",
"target": {
"file": "drivers/acpi/acpi_video.c",
"function": "acpi_video_bus_remove_notify_handler"
},
"digest": {
"length": 304.0,
"function_hash": "23242818797686687852337674532204008055"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e85246ec0d019dfba86ba54d841ef6694f97149",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-e0b61917",
"target": {
"file": "drivers/acpi/acpi_video.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"46737425076056931529472650299656444478",
"44114503307229988536831366356639433334",
"263086076541670428683149551265781145215",
"205167215832380539388852212834685235887",
"149641711002855429951983053604018396448"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de5fc93275a4a459fe2f7cb746984f2ab3e8292a",
"signature_version": "v1"
},
{
"id": "CVE-2025-40211-eaf130ae",
"target": {
"file": "drivers/acpi/acpi_video.c",
"function": "acpi_video_bus_remove_notify_handler"
},
"digest": {
"length": 304.0,
"function_hash": "23242818797686687852337674532204008055"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f067aa59430266386b83c18b983ca583faa6a11",
"signature_version": "v1"
}
]