Menu

Star on GitHub · 3.2k

CVE-2025-40037

In the Linux kernel, the following vulnerability has been resolved: fbdev: simplefb: Fix use after free in simplefb_detach_genpds() The pm_domain cleanup can not be devres managed as it uses stru…

Published Oct 28, 2025EPSS 0.21%

Overview

CVE-2025-40037 is a known-severity vulnerability. It was published on October 28, 2025.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

fbdev: simplefb: Fix use after free in simplefb_detach_genpds()

The pm_domain cleanup can not be devres managed as it uses struct

simplefb_par which is allocated within struct fb_info by

framebuffer_alloc(). This allocation is explicitly freed by

unregister_framebuffer() in simplefb_remove().

Devres managed cleanup runs after the device remove call and thus can no

longer access struct simplefb_par.

Call simplefb_detach_genpds() explicitly from simplefb_destroy() like

the cleanup functions for clocks and regulators.

Fixes an use after free on M2 Mac mini during

aperture_remove_conflicting_devices() using the downstream asahi kernel

with Debian's kernel config. For unknown reasons this started to

consistently dereference an invalid pointer in v6.16.3 based kernels.

[ 6.736134] BUG: KASAN: slab-use-after-free in simplefb_detach_genpds+0x58/0x220

[ 6.743545] Read of size 4 at addr ffff8000304743f0 by task (udev-w

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-40037?

CVE-2025-40037 is a known-severity vulnerability. It was published on October 28, 2025.

How severe is CVE-2025-40037?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2025-40037?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-40037?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-40037 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.