# CVE-2025-68787: netrom: Fix memory leak in nr\_sendmsg()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **Published:** 2026-01-13T15:29:00.344Z
- **Modified:** 2026-11-10T13:17:59.960Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f77e538ac4e3adb1882d5bccb7bfdc111b5963d3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09efbf54eeaecebe882af603c9939a4b1bb9567e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73839497bbde5cd4fd02bbd9c8bc2640780ae65d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 156a0f6341dce634a825db49ca20b48b1ae9bcc1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d1ccba4b171cd504ecfa47349cb9864fc9d687c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 613d12dd794e078be8ff3cf6b62a6b9acf7f4619
- Anyone running Linux 2.6.12

## Description

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

netrom: Fix memory leak in nr\_sendmsg()

syzbot reported a memory leak \[1\].

When function sock\_alloc\_send\_skb() return NULL in nr\_output(), the
original skb is not freed, which was allocated in nr\_sendmsg(). Fix this
by freeing it before return.

\[1\]
BUG: memory leak
unreferenced object 0xffff888129f35500 (size 240):
  comm "syz.0.17", pid 6119, jiffies 4294944652
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 10 52 28 81 88 ff ff  ..........R(....
  backtrace (crc 1456a3e4):
    kmemleak\_alloc\_recursive include/linux/kmemleak.h:44 \[inline\]
    slab\_post\_alloc\_hook mm/slub.c:4983 \[inline\]
    slab\_alloc\_node mm/slub.c:5288 \[inline\]
    kmem\_cache\_alloc\_node\_noprof+0x36f/0x5e0 mm/slub.c:5340
    \_\_alloc\_skb+0x203/0x240 net/core/skbuff.c:660
    alloc\_skb include/linux/skbuff.h:1383 \[inline\]
    alloc\_skb\_with\_frags+0x69/0x3f0 net/core/skbuff.c:6671
    sock\_alloc\_send\_pskb+0x379/0x3e0 net/core/sock.c:2965
    sock\_alloc\_send\_skb include/net/sock.h:1859 \[inline\]
    nr\_sendmsg+0x287/0x450 net/netrom/af\_netrom.c:1105
    sock\_sendmsg\_nosec net/socket.c:727 \[inline\]
    \_\_sock\_sendmsg net/socket.c:742 \[inline\]
    sock\_write\_iter+0x293/0x2a0 net/socket.c:1195
    new\_sync\_write fs/read\_write.c:593 \[inline\]
    vfs\_write+0x45d/0x710 fs/read\_write.c:686
    ksys\_write+0x143/0x170 fs/read\_write.c:738
    do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
    do\_syscall\_64+0xa4/0xfa0 arch/x86/entry/syscall\_64.c:94
    entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f77e538ac4e3adb1882d5bccb7bfdc111b5963d3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09efbf54eeaecebe882af603c9939a4b1bb9567e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73839497bbde5cd4fd02bbd9c8bc2640780ae65d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 156a0f6341dce634a825db49ca20b48b1ae9bcc1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d1ccba4b171cd504ecfa47349cb9864fc9d687c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 613d12dd794e078be8ff3cf6b62a6b9acf7f4619 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 613d12dd794e078be8ff3cf6b62a6b9acf7f4619 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-68787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68787.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f77e538ac4e3adb1882d5bccb7bfdc111b5963d3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 09efbf54eeaecebe882af603c9939a4b1bb9567e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 73839497bbde5cd4fd02bbd9c8bc2640780ae65d; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 09efbf54eeaecebe882af603c9939a4b1bb9567e, Linux 73839497bbde5cd4fd02bbd9c8bc2640780ae65d, Linux 156a0f6341dce634a825db49ca20b48b1ae9bcc1, Linux 8d1ccba4b171cd504ecfa47349cb9864fc9d687c, Linux 51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977, Linux 613d12dd794e078be8ff3cf6b62a6b9acf7f4619

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

There is no confirmed exploitation: CVE-2025-68787 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-68787?

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f77e538ac4e3adb1882d5bccb7bfdc111b5963d3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09efbf54eeaecebe882af603c9939a4b1bb9567e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 73839497bbde5cd4fd02bbd9c8bc2640780ae65d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 156a0f6341dce634a825db49ca20b48b1ae9bcc1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8d1ccba4b171cd504ecfa47349cb9864fc9d687c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 613d12dd794e078be8ff3cf6b62a6b9acf7f4619; Linux 2.6.12.

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

Yes. Fixed in Linux 09efbf54eeaecebe882af603c9939a4b1bb9567e, Linux 73839497bbde5cd4fd02bbd9c8bc2640780ae65d, Linux 156a0f6341dce634a825db49ca20b48b1ae9bcc1, Linux 8d1ccba4b171cd504ecfa47349cb9864fc9d687c, Linux 51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977, Linux 613d12dd794e078be8ff3cf6b62a6b9acf7f4619. Upgrade Linux to 613d12dd794e078be8ff3cf6b62a6b9acf7f4619 or later.

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

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

- other: <https://git.kernel.org/stable/c/f77e538ac4e3adb1882d5bccb7bfdc111b5963d3>
- other: <https://git.kernel.org/stable/c/09efbf54eeaecebe882af603c9939a4b1bb9567e>
- other: <https://git.kernel.org/stable/c/73839497bbde5cd4fd02bbd9c8bc2640780ae65d>
- other: <https://git.kernel.org/stable/c/156a0f6341dce634a825db49ca20b48b1ae9bcc1>
- other: <https://git.kernel.org/stable/c/8d1ccba4b171cd504ecfa47349cb9864fc9d687c>
- other: <https://git.kernel.org/stable/c/51f5fbc1681bdcffcc7d18bf3dfdb2b1278d3977>
- other: <https://git.kernel.org/stable/c/613d12dd794e078be8ff3cf6b62a6b9acf7f4619>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.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-68787>

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