Skip to main content
CVE-2025-40249VulnerabilityPublished Updated

CVE-2025-40249: Linux hwe edge · In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: make sure the cdev fd is still active before emitting events With

Affects linux-hwe-edgeSource GCVE Database

0

Not known to be exploited · CVSS 7.8 Medium · fixed in 6.17.0-1018.18 : update linux-hwe-edge when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
7.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.17.0-1018.18, 6.17.0-1010.10~24.04.1, 6.17.0-1009.9~24.04.3 +2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
linux-hwe-edgeAffected
  • <6.17.0-1009.9~24.04.2
  • <6.17.0-1010.10~24.04.1
  • <6.17.0-1009.9~24.04.3
  • <6.17.0-19.19~24.04.2
  • <6.17.0-1018.18
Fixed in
  • 6.17.0-1009.9~24.04.2
  • 6.17.0-1010.10~24.04.1
  • 6.17.0-1009.9~24.04.3
  • 6.17.0-19.19~24.04.2
  • 6.17.0-1018.18

AI-suggested

The vulnerability has been resolved in the Linux kernel by changing the code to use get_file_active() instead of get_file() to ensure the file descriptor is active before use. Although no explicit patch links are provided here, users should apply the official Linux kernel updates that include this fix.

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.

References

Community reviews

Loading reviews…