CVE-2025-40211
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40211 is a use-after-free vulnerability in the Linux kernel's ACPI video subsystem, specifically in the acpi_video_switch_brightness() function. The flaw arises when the switch_brightness_work delayed work item accesses device->brightness and device->backlight resources after they have been freed by acpi_video_dev_unregister_backlight() during device removal. It affects Linux kernel versions from 3.17 up to the patched releases (6.12.58, 6.17.8, and 6.18-rc4), and also impacts Microsoft Azure Linux 3 kernel builds prior to version 6.6.112.1-2. The vulnerability was published on November 21, 2025, and carries a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Microsoft MSRC).

Technical details

The root cause is a race condition leading to a use-after-free (CWE-416) in the Linux kernel's ACPI video driver. When a device is removed, acpi_video_bus_unregister_backlight() frees device->brightness and device->backlight, but the switch_brightness_work delayed work item — queued by the ACPI notify handler — may execute after this deallocation, causing acpi_video_switch_brightness() to dereference freed memory. The attack vector is local (requiring low-privilege access), with low attack complexity and no user interaction required. The fix involves calling cancel_delayed_work_sync() for each device's switch_brightness_work in acpi_video_bus_remove_notify_handler() after removing the notify handler, ensuring the work completes before memory is freed (Red Hat CVE, Kernel Patch 1).

Impact

Successful exploitation of this use-after-free vulnerability can result in kernel crashes, memory corruption, and potentially arbitrary code execution in kernel context. The confidentiality, integrity, and availability impacts are all rated High, meaning an attacker could potentially escalate privileges, corrupt kernel memory, or cause a denial of service (system crash). The vulnerability is scoped to the local system and does not directly enable lateral movement, but privilege escalation to root could facilitate further compromise (Red Hat CVE).

Exploitability

No public proof-of-concept exploit code is known to exist, and there is no evidence of active in-the-wild exploitation as of the time of publication. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.017% (0.000170), indicating a very low probability of exploitation in the near term. Exploitation requires local access with low privileges, limiting the attack surface compared to remotely exploitable vulnerabilities (Red Hat CVE).

Mitigation and workarounds

Update the Linux kernel to a patched version: 6.12.58, 6.17.8, or 6.18-rc4 and later. Microsoft Azure Linux 3 users should update to kernel version 6.6.112.1-2 or later. Debian LTS users should apply the updates referenced in DLA-4404-1 and DLA-4436-1. Ubuntu users should apply the fixes from USN-8096-1, USN-8096-2, USN-8096-3, and USN-8096-5. Amazon Linux 2 users should apply ALAS2KERNEL-5.15-2025-096 or ALAS2KERNEL-5.10-2026-112 as applicable. No configuration-based workaround is available; patching is the only remediation (Red Hat CVE, Microsoft MSRC, Debian LTS, Ubuntu USN).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management