# CVE-2025-22109: ax25: Remove broken autobind

> 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, CNA) `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-401
- **Published:** 2025-04-16T14:12:56.405Z
- **Modified:** 2026-10-30T13:17:56.850Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7bffc5aad1e89354151150af2d4ded20b3c702a0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f364eb60987a55712bcfb9a69235bf3f31bfab5a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 064bc39c23f72efbfbf189786da711d253451033; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 61203fdd3e35519db9a98b6ff8983c620ffc4696; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8
- Anyone running Linux 2.6.12

## Description

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

ax25: Remove broken autobind

Binding AX25 socket by using the autobind feature leads to memory leaks
in ax25\_connect() and also refcount leaks in ax25\_release(). Memory
leak was detected with kmemleak:

================================================================
unreferenced object 0xffff8880253cd680 (size 96):
backtrace:
\_\_kmalloc\_node\_track\_caller\_noprof (./include/linux/kmemleak.h:43)
kmemdup\_noprof (mm/util.c:136)
ax25\_rt\_autobind (net/ax25/ax25\_route.c:428)
ax25\_connect (net/ax25/af\_ax25.c:1282)
\_\_sys\_connect\_file (net/socket.c:2045)
\_\_sys\_connect (net/socket.c:2064)
\_\_x64\_sys\_connect (net/socket.c:2067)
do\_syscall\_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83)
entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:130)
================================================================

When socket is bound, refcounts must be incremented the way it is done
in ax25\_bind() and ax25\_setsockopt() (SO\_BINDTODEVICE). In case of
autobind, the refcounts are not incremented.

This bug leads to the following issue reported by Syzkaller:

================================================================
ax25\_connect(): syz-executor318 uses autobind, please contact jreuter@yaina.de
------------\[ cut here \]------------
refcount\_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 5317 at lib/refcount.c:31 refcount\_warn\_saturate+0xfa/0x1d0 lib/refcount.c:31
Modules linked in:
CPU: 0 UID: 0 PID: 5317 Comm: syz-executor318 Not tainted 6.14.0-rc4-syzkaller-00278-gece144f151ac \#0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:refcount\_warn\_saturate+0xfa/0x1d0 lib/refcount.c:31
...
Call Trace:
 \<TASK\>
 \_\_refcount\_dec include/linux/refcount.h:336 \[inline\]
 refcount\_dec include/linux/refcount.h:351 \[inline\]
 ref\_tracker\_free+0x6af/0x7e0 lib/ref\_tracker.c:236
 netdev\_tracker\_free include/linux/netdevice.h:4302 \[inline\]
 netdev\_put include/linux/netdevice.h:4319 \[inline\]
 ax25\_release+0x368/0x960 net/ax25/af\_ax25.c:1080
 \_\_sock\_release net/socket.c:647 \[inline\]
 sock\_close+0xbc/0x240 net/socket.c:1398
 \_\_fput+0x3e9/0x9f0 fs/file\_table.c:464
 \_\_do\_sys\_close fs/open.c:1580 \[inline\]
 \_\_se\_sys\_close fs/open.c:1565 \[inline\]
 \_\_x64\_sys\_close+0x7f/0x110 fs/open.c:1565
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
 ...
 \</TASK\>
================================================================

Considering the issues above and the comments left in the code that say:
"check if we can remove this feature. It is broken."; "autobinding in this
may or may not work"; - it is better to completely remove this feature than
to fix it because it is broken and leads to various kinds of memory bugs.

Now calling connect() without first binding socket will result in an
error (-EINVAL). Userspace software that relies on the autobind feature
might get broken. However, this feature does not seem widely used with
this specific driver as it was not reliable at any point of time, and it
is already broken anyway. E.g. ax25-tools and ax25-apps packages for
popular distributions do not use the autobind feature for AF\_AX25.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7bffc5aad1e89354151150af2d4ded20b3c702a0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f364eb60987a55712bcfb9a69235bf3f31bfab5a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 064bc39c23f72efbfbf189786da711d253451033; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 61203fdd3e35519db9a98b6ff8983c620ffc4696; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-22109.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7bffc5aad1e89354151150af2d4ded20b3c702a0; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f364eb60987a55712bcfb9a69235bf3f31bfab5a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 064bc39c23f72efbfbf189786da711d253451033; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 7bffc5aad1e89354151150af2d4ded20b3c702a0, Linux 064bc39c23f72efbfbf189786da711d253451033, Linux 61203fdd3e35519db9a98b6ff8983c620ffc4696, Linux 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8

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

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

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

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7bffc5aad1e89354151150af2d4ded20b3c702a0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f364eb60987a55712bcfb9a69235bf3f31bfab5a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 064bc39c23f72efbfbf189786da711d253451033; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 61203fdd3e35519db9a98b6ff8983c620ffc4696; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8; Linux 2.6.12.

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

Yes. Fixed in Linux 7bffc5aad1e89354151150af2d4ded20b3c702a0, Linux 064bc39c23f72efbfbf189786da711d253451033, Linux 61203fdd3e35519db9a98b6ff8983c620ffc4696, Linux 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8. Upgrade Linux to 2f6efbabceb6b2914ee9bafb86d9a51feae9cce8 or later.

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

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/61203fdd3e35519db9a98b6ff8983c620ffc4696>
- patch: <https://git.kernel.org/stable/c/2f6efbabceb6b2914ee9bafb86d9a51feae9cce8>
- other: <https://git.kernel.org/stable/c/7bffc5aad1e89354151150af2d4ded20b3c702a0>
- other: <https://git.kernel.org/stable/c/f364eb60987a55712bcfb9a69235bf3f31bfab5a>
- other: <https://git.kernel.org/stable/c/064bc39c23f72efbfbf189786da711d253451033>

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

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