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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-07-04T13:37:11.885Z
- **Modified:** 2026-06-17T09:16:20.713Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c19c0943424b412a84fdf178e6c71fe5480e4f0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4b0fd8c25a7583f8564af6cc910418fb8954e89; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1b0ad18704913c92a3ad53748fbc0f219a75b876; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ca00f0e6d733ecd9150716d1fd0138d26e674706; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3261c017a7c5d2815c6a388c5a3280d1fba0e8db; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e996507f59610e5752b8702537f13f551e7a2c96; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c9260c837de1d2b454960a4a2e44a81272fbcd22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f370ae1fb6317985f3497b1bb80d457508ca2f7
- Anyone running Linux 2.6.12

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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c19c0943424b412a84fdf178e6c71fe5480e4f0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4b0fd8c25a7583f8564af6cc910418fb8954e89; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1b0ad18704913c92a3ad53748fbc0f219a75b876; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ca00f0e6d733ecd9150716d1fd0138d26e674706; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3261c017a7c5d2815c6a388c5a3280d1fba0e8db; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e996507f59610e5752b8702537f13f551e7a2c96; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c9260c837de1d2b454960a4a2e44a81272fbcd22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f370ae1fb6317985f3497b1bb80d457508ca2f7 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 2f370ae1fb6317985f3497b1bb80d457508ca2f7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38185. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38185.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c19c0943424b412a84fdf178e6c71fe5480e4f0f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4b0fd8c25a7583f8564af6cc910418fb8954e89; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1b0ad18704913c92a3ad53748fbc0f219a75b876; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 1b0ad18704913c92a3ad53748fbc0f219a75b876, Linux 3261c017a7c5d2815c6a388c5a3280d1fba0e8db, Linux 2f370ae1fb6317985f3497b1bb80d457508ca2f7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38185 being exploited?

There is no confirmed exploitation: CVE-2025-38185 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38185?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38185?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c19c0943424b412a84fdf178e6c71fe5480e4f0f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4b0fd8c25a7583f8564af6cc910418fb8954e89; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1b0ad18704913c92a3ad53748fbc0f219a75b876; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ca00f0e6d733ecd9150716d1fd0138d26e674706; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3261c017a7c5d2815c6a388c5a3280d1fba0e8db; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e996507f59610e5752b8702537f13f551e7a2c96; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c9260c837de1d2b454960a4a2e44a81272fbcd22; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f370ae1fb6317985f3497b1bb80d457508ca2f7; Linux 2.6.12.

### Is there a fix for CVE-2025-38185?

Yes. Fixed in Linux 1b0ad18704913c92a3ad53748fbc0f219a75b876, Linux 3261c017a7c5d2815c6a388c5a3280d1fba0e8db, Linux 2f370ae1fb6317985f3497b1bb80d457508ca2f7. Upgrade Linux to 2f370ae1fb6317985f3497b1bb80d457508ca2f7 or later.

### How do I check if I'm affected by CVE-2025-38185?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38185>

HTML: <https://flawdb.com/CVE-2025-38185> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38185>
