Bug 2059923 (CVE-2022-25375)

Summary: CVE-2022-25375 kernel: information disclosure in drivers/usb/gadget/function/rndis.c
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bhu, bishop, bskeggs, chwhite, crwood, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, jarod, jarodwilson, jburrell, jeremy, jfaracco, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, steved, vkumar, 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:
An information disclosure vulnerability was found in the Linux kernel. The RNDIS USB gadget lacks validation of the size of the RNDIS_MSG_SET command. This flaw allows a local attacker to dump contents of kernel memory space via a packet filter update mechanism and potentially extract sensitive information.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-29 09:57:43 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: 2059924    
Bug Blocks: 2059925    

Description Marian Rehak 2022-03-02 10:47:40 UTC
A possible kernel memory information disclosure was discovered in drivers/usb/gadget/function/rndis.c. The RNDIS USB gadget lacks validation of the size of the RNDIS_MSG_SET command.

References:

http://www.openwall.com/lists/oss-security/2022/02/21/1

Comment 1 Marian Rehak 2022-03-02 10:48:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2059924]

Comment 2 Justin M. Forbes 2022-03-02 15:50:30 UTC
This was fixed for Fedora with the 5.16.10 stable kernel updates.

Comment 6 Mauro Matteo Cascella 2022-08-26 10:19:58 UTC
Upstream commit:
https://github.com/torvalds/linux/commit/38ea1eac7d88072bbffb630e2b3db83ca649b826