Bug 2055502 (CVE-2022-25258)

Summary: CVE-2022-25258 kernel: security issues in the OS descriptor handling section of composite_setup function (composite.c)
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, ahanwate, airlied, alciregi, bhu, brdeoliv, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, fpacheco, hdegoede, hkrzesin, jarod, jarodwilson, jeremy, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, michal.skrivanek, mperina, nmurray, ptalbert, qzhao, rkeshri, rvrbovsk, sbonazzo, scweaver, steved, walters, williams, zulinx86
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.17-rc4 Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in the Linux kernel’s USB gadget subsystem in the way a user uses too many interfaces for the gadget type. This flaw allows a local user to crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-07 16:50:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2055568, 2056625    
Bug Blocks: 2055503    

Description Sandipan Roy 2022-02-17 06:17:23 UTC
An issue was discovered 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.

https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c
https://github.com/szymonh/d-os-descriptor
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.10

Comment 2 Avinash Hanwate 2022-02-17 09:17:38 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2055568]

Comment 5 Sandro Bonazzola 2022-02-21 16:08:35 UTC
Created kernel tracking bugs for this issue:

Affects: ovirt-4.4 [ bug #2056625 ]

Comment 8 Product Security DevOps Team 2022-03-07 16:50:01 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-25258