CVE-2024-40910
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-40910 is a vulnerability in the Linux kernel's AX.25 protocol implementation, discovered in July 2024. The issue involves a refcount imbalance in the ax25_accept() function where netdev_hold() is not called for incoming connections, while netdev_put() is called during socket release in ax25_release(). This vulnerability affects Linux kernel versions from 5.18 up to 6.1.95, 6.2 to 6.6.35, 6.7 to 6.9.6, and 6.10-rc1/rc2 (NVD).

Technical details

The vulnerability stems from a refcount imbalance in the AX.25 protocol implementation. When releasing a socket in ax25_release(), the code calls netdev_put() to decrease the refcount on the associated AX.25 device. However, the execution path for accepting an incoming connection never calls netdev_hold(), creating an imbalance. This leads to refcount errors that manifest as either 'refcount_t: decrement hit 0; leaking memory' or 'refcount_t: underflow; use-after-free' errors. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Kernel Patch).

Impact

The vulnerability can lead to kernel crashes and system instability. When attempting to reboot or remove the interface, the kernel can become stuck in an infinite loop with the message 'unregister_netdevice: waiting for ax0 to become free. Usage count = 0'. This primarily affects system availability and stability, with no direct impact on confidentiality or integrity (Kernel Patch).

Exploitability

The vulnerability requires local access and can be triggered through normal usage of AX.25 networking functionality. The issue specifically occurs during the handling of inbound connections, making it exploitable in environments where AX.25 protocol communications are active (NVD).

Mitigation and workarounds

The issue has been patched by ensuring that netdev_hold() and ax25_dev_hold() are called for new connections in ax25_accept(). This makes the logic consistent with ax25_bind(), where the refcount is incremented and later decremented in ax25_release(). The fix has been incorporated into various Linux distributions, including Ubuntu and Debian, through their respective security updates (Ubuntu Notice, Debian Notice).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80913NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesSep 04, 2026
CVE-2026-80905NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 04, 2026
CVE-2026-80898NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.18
NoYesSep 04, 2026
CVE-2026-80897NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80892NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management