CVE-2025-40249
Last modified
CVE-2025-40249 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
Description
In 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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 40b7c49950bd56c984b1f6722f865b922879260e, < dccc6daa8afa0f64c432e4c867f275747e3415e1; >= 40b7c49950bd56c984b1f6722f865b922879260e, < d4cd0902c156b2ca60fdda8cd8b5bcb4b0e9ed64 |
| Linux | Linux | 6.13 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40249?
How severe is CVE-2025-40249?
How do I fix CVE-2025-40249?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40243In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40244In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40245In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40246In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40247In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40248In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-4025A vulnerability classified as critical was found in itsource…9.8
- CVE-2025-40250In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40251In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-40252In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2025-40253In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40254In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40249?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
