NULL pointer dereference in Linux Kernel
CVE-2022-25258
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.6 (Medium). Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.009, 60.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- szymonh/d-os-descriptor (last pushed 2022-02-16): CVE-2022-25258 - Demo exploit targeting usb gadget's os descriptor handler
Also mentioned in 13 other repositories (ARPSyndicate/cvemon, k0mi-tg/CVE-POC, manas3c/CVE-POC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c (Patch, Third Party Advisory)
- github.com/szymonh/d-os-descriptor (Third Party Advisory, Issue Tracking)
- cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.10 (Release Notes, Vendor Advisory)
- FEDORA-2022-9d4e48836d (vendor-advisory)
- DSA-5092 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2940-1] linux security update (mailing-list, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2941-1] linux-4.19 security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-5096 (vendor-advisory, Third Party Advisory)
- security.netapp.com/advisory/ntap-20221028-0007/ (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.