Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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 ]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.247, 5.15.197, 5.4.302, 6.1.159, 6.12.58, 6.17.8, 6.6.117
CVEs
CVE-2025-40211
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 16:44 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 21 Nov 2025, 10:21 UTC

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 ]

osv:CVE-2025-40211

Kernel

Fixed versions: 5.4.302, 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8

Complete source record
{
  "id": "5e17dc2efcecb1b7fc7bfcc34ac9545cf07429661efa830e7928c41dfab827d4",
  "url": "https://osv.dev/vulnerability/CVE-2025-40211",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ACPI: video: Fix use-after-free in acpi_video_switch_brightness()",
    "summary": "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 ]",
    "evidence": "osv:CVE-2025-40211",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.302",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.247",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.197",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.159",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.117",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.58",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40211",
      "aliases": [
        "CVE-2025-40211"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8ab58e8e7e097bae5fe39cbc67eb93a91f7134b7"
                },
                {
                  "fixed": "3f803ccf5a0c043e7c8b83f6665b082401fc8bee"
                },
                {
                  "fixed": "ba1704316492a0496c69334338ea1fdbf4c2fd34"
                },
                {
                  "fixed": "bc78a4f51d548c1ccc3d1967c2b394bf687c86e9"
                },
                {
                  "fixed": "a63a5b6fb508d78fe57ae3b159d9ef3af7ba80e9"
                },
                {
                  "fixed": "4e85246ec0d019dfba86ba54d841ef6694f97149"
                },
                {
                  "fixed": "de5fc93275a4a459fe2f7cb746984f2ab3e8292a"
                },
                {
                  "fixed": "293125536ef5521328815fa7c76d5f9eb1635659"
                },
                {
                  "fixed": "8f067aa59430266386b83c18b983ca583faa6a11"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40211.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.17.0"
                },
                {
                  "fixed": "5.4.302"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.247"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.197"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.159"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40211.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.061825275Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/293125536ef5521328815fa7c76d5f9eb1635659",
        "https://git.kernel.org/stable/c/3f803ccf5a0c043e7c8b83f6665b082401fc8bee",
        "https://git.kernel.org/stable/c/4e85246ec0d019dfba86ba54d841ef6694f97149",
        "https://git.kernel.org/stable/c/8f067aa59430266386b83c18b983ca583faa6a11",
        "https://git.kernel.org/stable/c/a63a5b6fb508d78fe57ae3b159d9ef3af7ba80e9",
        "https://git.kernel.org/stable/c/ba1704316492a0496c69334338ea1fdbf4c2fd34",
        "https://git.kernel.org/stable/c/bc78a4f51d548c1ccc3d1967c2b394bf687c86e9",
        "https://git.kernel.org/stable/c/de5fc93275a4a459fe2f7cb746984f2ab3e8292a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40211.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40211",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40211.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40211",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 519904,
  "published_at": "2025-11-21T10:21:36.438+00:00"
}