Bug 2347935 (CVE-2022-49178)

Summary: CVE-2022-49178 kernel: memstick/mspro_block: fix handling of read-only devices
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw exists in the Linux kernel's memstick/mspro_block driver, which handles Memory Stick Pro devices. The issue arises from improper management of read-only devices. Specifically, the driver fails to correctly propagate the read-only state to the block layer, leading to a reference leak when such devices are accessed.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:11:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

memstick/mspro_block: fix handling of read-only devices

Use set_disk_ro to propagate the read-only state to the block layer
instead of checking for it in ->open and leaking a reference in case
of a read-only device.

Comment 3 Avinash Hanwate 2025-02-27 23:37:23 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022614-CVE-2022-49178-b663@gregkh/T