# CVE-2025-38185: atm: atmtcp: Free invalid length skb in atmtcp_c_send().

- 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 11% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:11.885Z
- Modified: 2026-06-17T09:16:20.713Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

atm: atmtcp: Free invalid length skb in atmtcp_c_send().

syzbot reported the splat below. [0]

vcc_sendmsg() copies data passed from userspace to skb and passes
it to vcc->dev->ops->send().

atmtcp_c_send() accesses skb->data as struct atmtcp_hdr after
checking if skb->len is 0, but it's not enough.

Also, when skb->len == 0, skb and sk (vcc) were leaked because
dev_kfree_skb() is not called and sk_wmem_alloc adjustment is missing
to revert atm_account_tx() in vcc_sendmsg(), which is expected
to be done in atm_pop_raw().

Let's properly free skb with an invalid length in atmtcp_c_send().

[0]:
BUG: KMSAN: uninit-value in atmtcp_c_send+0x255/0xed0 drivers/atm/atmtcp.c:294
 atmtcp_c_send+0x255/0xed0 drivers/atm/atmtcp.c:294
 vcc_sendmsg+0xd7c/0xff0 net/atm/common.c:644
 sock_sendmsg_nosec net/socket.c:712 [inline]
 __sock_sendmsg+0x330/0x3d0 net/socket.c:727
 ____sys_sendmsg+0x7e0/0xd80 net/socket.c:2566
 ___sys_sendmsg+0x271/0x3b0 net/socket.c:2620
 __sys_sendmsg net/socket.c:2652 [inline]
 __do_sys_sendmsg net/socket.c:2657 [inline]
 __se_sys_sendmsg net/socket.c:2655 [inline]
 __x64_sys_sendmsg+0x211/0x3e0 net/socket.c:2655
 x64_sys_call+0x32fb/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4154 [inline]
 slab_alloc_node mm/slub.c:4197 [inline]
 kmem_cache_alloc_node_noprof+0x818/0xf00 mm/slub.c:4249
 kmalloc_reserve+0x13c/0x4b0 net/core/skbuff.c:579
 __alloc_skb+0x347/0x7d0 net/core/skbuff.c:670
 alloc_skb include/linux/skbuff.h:1336 [inline]
 vcc_sendmsg+0xb40/0xff0 net/atm/common.c:628
 sock_sendmsg_nosec net/socket.c:712 [inline]
 __sock_sendmsg+0x330/0x3d0 net/socket.c:727
 ____sys_sendmsg+0x7e0/0xd80 net/socket.c:2566
 ___sys_sendmsg+0x271/0x3b0 net/socket.c:2620
 __sys_sendmsg net/socket.c:2652 [inline]
 __do_sys_sendmsg net/socket.c:2657 [inline]
 __se_sys_sendmsg net/socket.c:2655 [inline]
 __x64_sys_sendmsg+0x211/0x3e0 net/socket.c:2655
 x64_sys_call+0x32fb/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 1 UID: 0 PID: 5798 Comm: syz-executor192 Not tainted 6.16.0-rc1-syzkaller-00010-g2c4a1f3fe03e #0 PREEMPT(undef)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c19c0943424b412a84fdf178e6c71fe5480e4f0f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a4b0fd8c25a7583f8564af6cc910418fb8954e89; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1b0ad18704913c92a3ad53748fbc0f219a75b876; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ca00f0e6d733ecd9150716d1fd0138d26e674706; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3261c017a7c5d2815c6a388c5a3280d1fba0e8db; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e996507f59610e5752b8702537f13f551e7a2c96; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c9260c837de1d2b454960a4a2e44a81272fbcd22; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2f370ae1fb6317985f3497b1bb80d457508ca2f7; 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/c19c0943424b412a84fdf178e6c71fe5480e4f0f> (patch)
- <https://git.kernel.org/stable/c/a4b0fd8c25a7583f8564af6cc910418fb8954e89> (patch)
- <https://git.kernel.org/stable/c/1b0ad18704913c92a3ad53748fbc0f219a75b876> (patch)
- <https://git.kernel.org/stable/c/ca00f0e6d733ecd9150716d1fd0138d26e674706> (patch)
- <https://git.kernel.org/stable/c/3261c017a7c5d2815c6a388c5a3280d1fba0e8db> (patch)
- <https://git.kernel.org/stable/c/e996507f59610e5752b8702537f13f551e7a2c96> (patch)
- <https://git.kernel.org/stable/c/c9260c837de1d2b454960a4a2e44a81272fbcd22> (patch)
- <https://git.kernel.org/stable/c/2f370ae1fb6317985f3497b1bb80d457508ca2f7> (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-38185](https://www.cve.org/CVERecord?id=CVE-2025-38185), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38185](https://nvd.nist.gov/vuln/detail/CVE-2025-38185), Public domain, modified 2026-06-17

---

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