CVE-2025-38190

atm: Revert atm_account_tx() if copy_from_iter_full() fails.

State
Published
Severity
Not scored
Published
Jul 4, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

atm: Revert atm_account_tx() if copy_from_iter_full() fails.

In vcc_sendmsg(), we account skb->truesize to sk->sk_wmem_alloc by atm_account_tx().

It is expected to be reverted by atm_pop_raw() later called by vcc->dev->ops->send(vcc, skb).

However, vcc_sendmsg() misses the same revert when copy_from_iter_full() fails, and then we will leak a socket.

Let's factorise the revert part as atm_return_tx() and call it in the failure path.

Note that the corresponding sk_wmem_alloc operation can be found in alloc_tx() as of the blamed commit.

$ git blame -L:alloc_tx net/atm/common.c c55fa3cccbc2c~

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5e0d00992118e234ebf29d5145c1cc920342777eAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c12430edd92fd49a4800b0f3fb395b50cb16bcc1Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 287b4f085d2ca3375cf1ee672af27410c64777e8Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2252c539c43f9a1431a7e8b34e3c18e9dd77a96dAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3902205eadf35db59dbc2186c2a98b9e6182efa5Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3d828519bd69bfcaabdd942a872679617ef06739Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 7d6bc28cfe5c8e3a279b4b4bdeed6698b2702685Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 7851263998d4269125fd6cb3fdbfc7c6db853859Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 5.4.295 through 5.4.*Not affected
  • 5.10.239 through 5.10.*Not affected
  • 5.15.186 through 5.15.*Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.95 through 6.6.*Not affected
  • 6.12.35 through 6.12.*Not affected
  • 6.15.4 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.