CVE-2025-21792: Linux kernel · ax25: Fix refcount leak caused by setting SO_BINDTODEVICE sockopt
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 01:13 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix for this vulnerability is available in the Linux kernel source code as described in the commit that corrected the reference count handling in ax25_setsockopt(). Users and administrators should update to a kernel version that includes this fix. Since this is a kernel-level issue, applying the official kernel patch or upgrading to a fixed kernel release is the recommended remediation.
Description
CVE-2025-21792 is a vulnerability in the Linux kernel's AX25 protocol implementation where a reference count leak occurs when binding an AX25 device to a socket using the SO_BINDTODEVICE socket option. This leak happens because the reference count increment is missing in this code path, leading to improper resource management and potential memory leaks. The issue was identified and fixed by ensuring that reference counts are correctly incremented and decremented when devices are bound or unbound from sockets.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21792 (opens in a new tab)
- git.kernel.org/stable/c/470bda72fda0fcf54300466d70ce2de62f7835d2 (opens in a new tab)
- git.kernel.org/stable/c/90056ece99966182dc0e367f3fd2afab46ada847 (opens in a new tab)
- git.kernel.org/stable/c/94a0de224ed52eb2ecd4f4cb1b937b674c9fb955 (opens in a new tab)
- git.kernel.org/stable/c/b58f7ca86a7b8e480c06e30c5163c5d2f4e24023 (opens in a new tab)
- git.kernel.org/stable/c/bca0902e61731a75fc4860c8720168d9f1bae3b6 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html (opens in a new tab)