# CVE-2025-38190: atm: Revert atm_account_tx() if copy_from_iter_full() fails.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:15.054Z
- Modified: 2026-11-05T21:18:12.533Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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~

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5e0d00992118e234ebf29d5145c1cc920342777e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c12430edd92fd49a4800b0f3fb395b50cb16bcc1; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 287b4f085d2ca3375cf1ee672af27410c64777e8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2252c539c43f9a1431a7e8b34e3c18e9dd77a96d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3902205eadf35db59dbc2186c2a98b9e6182efa5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3d828519bd69bfcaabdd942a872679617ef06739; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7d6bc28cfe5c8e3a279b4b4bdeed6698b2702685; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7851263998d4269125fd6cb3fdbfc7c6db853859; 2.6.12 (not affected: before 2.6.12; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 2.6.13 before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4; 2.6.12; 6.16
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/5e0d00992118e234ebf29d5145c1cc920342777e> (patch)
- <https://git.kernel.org/stable/c/c12430edd92fd49a4800b0f3fb395b50cb16bcc1> (patch)
- <https://git.kernel.org/stable/c/287b4f085d2ca3375cf1ee672af27410c64777e8> (patch)
- <https://git.kernel.org/stable/c/2252c539c43f9a1431a7e8b34e3c18e9dd77a96d> (patch)
- <https://git.kernel.org/stable/c/3902205eadf35db59dbc2186c2a98b9e6182efa5> (patch)
- <https://git.kernel.org/stable/c/3d828519bd69bfcaabdd942a872679617ef06739> (patch)
- <https://git.kernel.org/stable/c/7d6bc28cfe5c8e3a279b4b4bdeed6698b2702685> (patch)
- <https://git.kernel.org/stable/c/7851263998d4269125fd6cb3fdbfc7c6db853859> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38190](https://www.cve.org/CVERecord?id=CVE-2025-38190), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38190](https://nvd.nist.gov/vuln/detail/CVE-2025-38190), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38190 · Whole record: https://cve.day/CVE-2025-38190.json · Rebuilt by cve.day 2026-11-25T22:59:00.632Z
