CVE Database›Document archive›CVE-2023-52894

CVE-2023-52894

kernel: usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · August 21, 2024

Updated · November 21, 2025

Description

A vulnerability was found in the Linux kernel's USB f_ncm.c driver where a lack of proper sanitization can result in a potential NULL pointer dereference in the ncm_bitrate() function. This issue can occur if cdev->gadget happens to be NULL when it is referenced by the ncm_bitrate() function, which then passes it to the gadget_is_superspeed() function, where the eventual NULL pointer dereference occurs. This vulnerability potentially leads to undefined behavior or crashes.

Statement

Red Hat Enterprise Linux is not impacted by this CVE, as the vulnerability in question does not affect the specific versions or configurations of the Linux kernel used in its distributions. This makes sure that users of Red Hat Enterprise Linux are not exposed to the potential risks associated with this issue, and no further action or mitigation is necessary for systems running this operating system.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-476 · NULL Pointer Dereference