# CVE-2025-38323: net: atm: add lec\_mutex

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-10T08:14:58.212Z
- **Modified:** 2026-11-05T21:18:26.810Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e91274cc7ed88ab5bdc62d426067c82b0b118a0b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a7a713dfb5f9477345450f27c7c0741864511192; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 17e156a94e94a906a570dbf9b48877956c60bef8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dffd03422ae6a459039c8602f410e6c0f4cbc6c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4d80b16ecc4229f7e6345158ef34c36be323f0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64b378db28a967f7b271b055380c2360279aa424; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d13a3824bfd2b4774b671a75cf766a16637a0e67
- Anyone running Linux 2.6.12

## Description

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

net: atm: add lec\_mutex

syzbot found its way in net/atm/lec.c, and found an error path
in lecd\_attach() could leave a dangling pointer in dev\_lec\[\].

Add a mutex to protect dev\_lecp\[\] uses from lecd\_attach(),
lec\_vcc\_attach() and lec\_mcast\_attach().

Following patch will use this mutex for /proc/net/atm/lec.

BUG: KASAN: slab-use-after-free in lecd\_attach net/atm/lec.c:751 \[inline\]
BUG: KASAN: slab-use-after-free in lane\_ioctl+0x2224/0x23e0 net/atm/lec.c:1008
Read of size 8 at addr ffff88807c7b8e68 by task syz.1.17/6142

CPU: 1 UID: 0 PID: 6142 Comm: syz.1.17 Not tainted 6.16.0-rc1-syzkaller-00239-g08215f5486ec \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 \<TASK\>
  \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
  dump\_stack\_lvl+0x116/0x1f0 lib/dump\_stack.c:120
  print\_address\_description mm/kasan/report.c:408 \[inline\]
  print\_report+0xcd/0x680 mm/kasan/report.c:521
  kasan\_report+0xe0/0x110 mm/kasan/report.c:634
  lecd\_attach net/atm/lec.c:751 \[inline\]
  lane\_ioctl+0x2224/0x23e0 net/atm/lec.c:1008
  do\_vcc\_ioctl+0x12c/0x930 net/atm/ioctl.c:159
  sock\_do\_ioctl+0x118/0x280 net/socket.c:1190
  sock\_ioctl+0x227/0x6b0 net/socket.c:1311
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:907 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:893 \[inline\]
  \_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:893
  do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
  do\_syscall\_64+0xcd/0x4c0 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
 \</TASK\>

Allocated by task 6132:
  kasan\_save\_stack+0x33/0x60 mm/kasan/common.c:47
  kasan\_save\_track+0x14/0x30 mm/kasan/common.c:68
  poison\_kmalloc\_redzone mm/kasan/common.c:377 \[inline\]
  \_\_kasan\_kmalloc+0xaa/0xb0 mm/kasan/common.c:394
  kasan\_kmalloc include/linux/kasan.h:260 \[inline\]
  \_\_do\_kmalloc\_node mm/slub.c:4328 \[inline\]
  \_\_kvmalloc\_node\_noprof+0x27b/0x620 mm/slub.c:5015
  alloc\_netdev\_mqs+0xd2/0x1570 net/core/dev.c:11711
  lecd\_attach net/atm/lec.c:737 \[inline\]
  lane\_ioctl+0x17db/0x23e0 net/atm/lec.c:1008
  do\_vcc\_ioctl+0x12c/0x930 net/atm/ioctl.c:159
  sock\_do\_ioctl+0x118/0x280 net/socket.c:1190
  sock\_ioctl+0x227/0x6b0 net/socket.c:1311
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:907 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:893 \[inline\]
  \_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:893
  do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
  do\_syscall\_64+0xcd/0x4c0 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Freed by task 6132:
  kasan\_save\_stack+0x33/0x60 mm/kasan/common.c:47
  kasan\_save\_track+0x14/0x30 mm/kasan/common.c:68
  kasan\_save\_free\_info+0x3b/0x60 mm/kasan/generic.c:576
  poison\_slab\_object mm/kasan/common.c:247 \[inline\]
  \_\_kasan\_slab\_free+0x51/0x70 mm/kasan/common.c:264
  kasan\_slab\_free include/linux/kasan.h:233 \[inline\]
  slab\_free\_hook mm/slub.c:2381 \[inline\]
  slab\_free mm/slub.c:4643 \[inline\]
  kfree+0x2b4/0x4d0 mm/slub.c:4842
  free\_netdev+0x6c5/0x910 net/core/dev.c:11892
  lecd\_attach net/atm/lec.c:744 \[inline\]
  lane\_ioctl+0x1ce8/0x23e0 net/atm/lec.c:1008
  do\_vcc\_ioctl+0x12c/0x930 net/atm/ioctl.c:159
  sock\_do\_ioctl+0x118/0x280 net/socket.c:1190
  sock\_ioctl+0x227/0x6b0 net/socket.c:1311
  vfs\_ioctl fs/ioctl.c:51 \[inline\]
  \_\_do\_sys\_ioctl fs/ioctl.c:907 \[inline\]
  \_\_se\_sys\_ioctl fs/ioctl.c:893 \[inline\]
  \_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:893

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e91274cc7ed88ab5bdc62d426067c82b0b118a0b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a7a713dfb5f9477345450f27c7c0741864511192; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 17e156a94e94a906a570dbf9b48877956c60bef8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dffd03422ae6a459039c8602f410e6c0f4cbc6c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4d80b16ecc4229f7e6345158ef34c36be323f0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64b378db28a967f7b271b055380c2360279aa424; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d13a3824bfd2b4774b671a75cf766a16637a0e67 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38323.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e91274cc7ed88ab5bdc62d426067c82b0b118a0b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a7a713dfb5f9477345450f27c7c0741864511192; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 17e156a94e94a906a570dbf9b48877956c60bef8; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 17e156a94e94a906a570dbf9b48877956c60bef8, Linux 18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a, Linux 64b378db28a967f7b271b055380c2360279aa424

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-38323 being exploited?

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

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

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

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e91274cc7ed88ab5bdc62d426067c82b0b118a0b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a7a713dfb5f9477345450f27c7c0741864511192; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 17e156a94e94a906a570dbf9b48877956c60bef8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dffd03422ae6a459039c8602f410e6c0f4cbc6c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4d80b16ecc4229f7e6345158ef34c36be323f0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64b378db28a967f7b271b055380c2360279aa424; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d13a3824bfd2b4774b671a75cf766a16637a0e67; Linux 2.6.12.

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

Yes. Fixed in Linux 17e156a94e94a906a570dbf9b48877956c60bef8, Linux 18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a, Linux 64b378db28a967f7b271b055380c2360279aa424. No fix listed yet: follow the vendor advisory.

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

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/e91274cc7ed88ab5bdc62d426067c82b0b118a0b>
- patch: <https://git.kernel.org/stable/c/a7a713dfb5f9477345450f27c7c0741864511192>
- patch: <https://git.kernel.org/stable/c/17e156a94e94a906a570dbf9b48877956c60bef8>
- patch: <https://git.kernel.org/stable/c/18e8f0c4f826fb08c2d3825cdd6c57e24b207e0a>
- patch: <https://git.kernel.org/stable/c/dffd03422ae6a459039c8602f410e6c0f4cbc6c8>
- patch: <https://git.kernel.org/stable/c/f4d80b16ecc4229f7e6345158ef34c36be323f0e>
- patch: <https://git.kernel.org/stable/c/64b378db28a967f7b271b055380c2360279aa424>
- patch: <https://git.kernel.org/stable/c/d13a3824bfd2b4774b671a75cf766a16637a0e67>
- 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-38323>

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