CyberSecBulletin
CVE-2025-38180NVD status: Modified

Linux: Use After Free

CVE-2025-38180 is a high-severity use after free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions fcfccf56f4eba7d00aa2d33c7bb1b33083237742, f2d1443b18806640abdb530e88009af7be2588e7, ca3829c18c8d0ceb656605d3bff6bb3dfb078589 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.21% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to fcfccf56f4eba7d00aa2d33c7bb1b33083237742 or f2d1443b18806640abdb530e88009af7be2588e7 or ca3829c18c8d0ceb656605d3bff6bb3dfb078589 or e612c4b014f5808fbc6beae21f5ccaca5e76a2f8, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 5.4.295 or 5.10.239 or 5.15.186 or 6.1.142, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, fcfccf56f4eba7d00aa2d33c7bb1b33083237742; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, f2d1443b18806640abdb530e88009af7be2588e7; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, ca3829c18c8d0ceb656605d3bff6bb3dfb078589; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, e612c4b014f5808fbc6beae21f5ccaca5e76a2f8; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, a5e3a144268899f1a8c445c8a3bfa15873ba85e8; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 5fe1b23a2f87f43aeeac51e08819cbc6fd808cbc; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 9b9aeb3ada44d8abea1e31e4446113f460848ae4; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, d03b79f459c7935cff830d98373474f440bd03ae; and 1 more rangesfcfccf56f4eba7d00aa2d33c7bb1b33083237742, f2d1443b18806640abdb530e88009af7be2588e7, ca3829c18c8d0ceb656605d3bff6bb3dfb078589, e612c4b014f5808fbc6beae21f5ccaca5e76a2f8, a5e3a144268899f1a8c445c8a3bfa15873ba85e8, 5fe1b23a2f87f43aeeac51e08819cbc6fd808cbc
LinuxLinux Kernel2.6.13 up to, but not including, 5.4.295; 5.5 up to, but not including, 5.10.239; 5.11 up to, but not including, 5.15.186; 5.16 up to, but not including, 6.1.142; 6.2 up to, but not including, 6.6.95; 6.7 up to, but not including, 6.12.35; 6.13 up to, but not including, 6.15.4; 2.6.12; and 1 more ranges5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.95, 6.12.35
DebianDebian Linux11.0Not stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.8HighNVD

Official description

In the Linux kernel, the following vulnerability has been resolved: net: atm: fix /proc/net/atm/lec handling /proc/net/atm/lec must ensure safety against dev_lec[] changes. It appears it had dev_put() calls without prior dev_hold(), leading to imbalance and UAF.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

How developers prevent this class of flaw

  • Choose a language that provides automatic memory management.
  • When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

More Use After Free vulnerabilities (CWE-416)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Use After Free vulnerabilities

Spotted an error? Tell us.