Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-26996

7.8 · HIGH
Published May 1, 2024 linux CWE-416 EPSS 0.23% (14th pctl)

Overview

CVE-2024-26996 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

usb: gadget: f_ncm: Fix UAF ncm object at re-bind after usb ep transport error

When ncm function is working and then stop usb0 interface for link down,

eth_stop() is called. At this piont, accidentally if usb transport error

should happen in usb_ep_enable(), 'in_ep' and/or 'out_ep' may not be enabled.

After that, ncm_disable() is called to disable for ncm unbind

but gether_disconnect() is never called since 'in_ep' is not enabled.

As the result, ncm object is released in ncm unbind

but 'dev->port_usb' associated to 'ncm->port' is not NULL.

And when ncm bind again to recover netdev, ncm object is reallocated

but usb0 interface is already associated to previous released ncm object.

Therefore, once usb0 interface is up and eth_start_xmit() is called,

released ncm object is dereferrenced and it might cause use-after-free memory.

[function unlink via configfs]

usb0: eth_stop dev->port_usb=ffffff9b179c3200

--> err

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 0, < 5.15.157 Affected

Frequently Asked Questions

What is CVE-2024-26996?

CVE-2024-26996 is a high-severity vulnerability affecting linux linux_kernel. It was published on May 1, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-26996?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-26996?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-26996?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-26996 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.