PT-2025-8233 · Linux+2 · Linux Kernel+2

Marek Szyprowski

·

Published

2025-02-26

·

Updated

2025-04-15

·

CVE-2022-49299

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 5.18.0-rc5-next-20220504
Description A vulnerability in the Linux kernel has been identified, where the UDC driver incorrectly resets the gadget's driver internals, specifically the driver->bus entry. This issue is triggered by a change in the gadget subsystem, which introduced its own bus. The vulnerability leads to a NULL pointer dereference, causing a kernel panic. The error occurs when the module add driver function is called, resulting in a crash.
Recommendations For Linux kernel versions prior to 5.18.0-rc5-next-20220504, the recommended fix is to remove the driver->bus entry reset in the UDC driver to prevent the NULL pointer dereference. This can be achieved by modifying the dwc2 gadget driver to avoid touching the gadget's driver internals, especially the driver->bus entry. As a temporary workaround, consider disabling the dwc2 gadget driver until a patch is available.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-49299
OPENSUSE-SU-2025_1263-1
SUSE-SU-2025:1027-1
SUSE-SU-2025:1176-1
SUSE-SU-2025:1183-1
SUSE-SU-2025:1194-1
SUSE-SU-2025:1241-1
SUSE-SU-2025:1263-1
SUSE-SU-2025_1027-1
SUSE-SU-2025_1241-1
SUSE-SU-2025_1263-1

Affected Products

Astra Linux
Linux Kernel
Suse