Review reviewHigh

CVE-2024-26996

Linux Linux, linux kernel

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->po...

CVSS
7.8
EPSS
0.23%
14.2% percentile
CISA KEV
Not listed
Published
2024.05.01
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.23%
Technical severityCVSS 7.8

Vulnerability overview

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->po...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b < 7f67c2020cb08499c400abf0fc32c65e4d9a09ca, >= 6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b < 0588bbbd718a8130b98c54518f1e0b569ce60a93, >= 6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b < f356fd0cbd9c9cbd0854657a80d1608d0d732db3, >= 6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b < 7250326cbb1f4f90391ac511a126b936cefb5bb7, >= 6b4012a2e4d4702f8fb0ee1db1c0f0b17ab7d41b < 6334b8e4553cc69f51e383c9de545082213d785e, >= 4.4, < 5.15.157, >= 5.16 < 6.1.88, >= 6.2 < 6.6.29, >= 6.7 < 6.8.8, 6.9
Fixed versions
5.15.157, 6.1.88, 6.6.29, 6.8.8

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-416
CVE-2024-26996 — Linux Linux, linux kernel | SECUFOCUS NOW