CVE-2025-40249
Patch priority
RegularFix with the next regular update.
- CVSS
- 7.8
- Severity
- 7.8
- EPSS
- 0.2 %
- Percentile
- 5
- Actively exploited
- not known
The traffic light combines CVSS (severity), EPSS (exploitation probability, FIRST) and CISA's KEV catalog. It does not replace your own assessment. More in the glossary
What do I need to do?
in plain wordsWho is affected?
Everyone who uses Linux-Kernel.
How dangerous is it?
- An attacker already needs access to the device (or gets you to open a file).
- The attacker must already be logged in – this lowers the risk.
What to do?
- Include it in your next regular update.
- Install your distribution’s kernel update and reboot – the new kernel only runs after a restart.
Generated automatically from the CVSS vector, KEV and EPSS – does not replace the vendor’s information. Terms explained
Description
NVDIn the Linux kernel, the following vulnerability has been resolved: gpio: cdev: make sure the cdev fd is still active before emitting events With the final call to fput() on a file descriptor, the release action may be deferred and scheduled on a work queue. The reference count of that descriptor is still zero and it must not be used. It's possible that a GPIO change, we want to notify the user-space about, happens AFTER the reference count on the file descriptor associated with the character device went down to zero but BEFORE the .release() callback was called from the workqueue and so BEFORE we unregistered from the notifier. Using the regular get_file() routine in this situation triggers the following warning: struct file::f_count incremented from zero; use-after-free condition present! So use the get_file_active() variant that will return NULL on file descriptors that have been or are being released.
- Published
- 04.12.2025
- Modified
- 19.10.2026
- Status
- Deferred
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor updates
6- Ubuntu: USN-8152-1 – Linux kernel (OEM) vulnerabilities 06.04.2026 · Critical · Patch day
- Ubuntu: USN-8094-5 – Linux kernel (Raspberry Pi) vulnerabilities 01.04.2026 · Critical · Patch day
- Ubuntu: USN-8094-4 – Linux kernel (Azure) vulnerabilities 25.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-3 – Linux kernel (Real-time) vulnerabilities 23.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-2 – Linux kernel vulnerabilities 17.03.2026 · Critical · Patch day
- Ubuntu: USN-8094-1 – Linux kernel vulnerabilities 16.03.2026 · Critical · Patch day
Sources: NVD (NIST), CISA KEV, EPSS (FIRST.org), vendors and authorities. No warranty.