Local privilege escalation via stale f_ncm pointer
Published May 1, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux kernel f_ncm USB gadget function allows local users to gain kernel privileges through a stale pointer. After an endpoint enable error, ncm_disable skips gether_disconnect because it checks the disabled endpoint, leaving dev->port_usb bound to the freed ncm object across rebind. Exploitation requires local gadget and network-interface reconfiguration followed by usb0 transmission; dereferencing reclaimed memory allows kernel control-flow hijacking or a kernel panic.
Summary
What happened
Use-after-free in the Linux kernel f_ncm USB gadget function allows local users to gain kernel privileges through a stale pointer. After an endpoint enable error, ncm_disable skips gether_disconnect because it checks the disabled endpoint, leaving dev->port_usb bound to the freed ncm object across rebind. Exploitation requires local gadget and network-interface reconfiguration followed by usb0 transmission; dereferencing reclaimed memory allows kernel control-flow hijacking or a kernel panic.
The record
- CVE
- CVE-2024-26996
- Published
- May 1, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 1, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.4
- Affected versionversion=6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b <0588bbbd718a8130b98c54518f1e0b569ce60a93
- Affected versionversion=6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b <6334b8e4553cc69f51e383c9de545082213d785e
- Affected versionversion=6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b <7250326cbb1f4f90391ac511a126b936cefb5bb7
- Affected versionversion=6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b <7f67c2020cb08499c400abf0fc32c65e4d9a09ca
- Affected versionversion=6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b <f356fd0cbd9c9cbd0854657a80d1608d0d732db3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo