# CVE-2022-49178: memstick/mspro_block: fix handling of read-only devices

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-02)
- Published: 2025-02-26T01:55:31.574Z
- Modified: 2026-10-15T22:17:24.073Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from baf8532a147d5b76681ce040e2c8f25a3f0e718d before 057b53c4f87690d626203acef8b63d52a9bf2f43; from baf8532a147d5b76681ce040e2c8f25a3f0e718d before 6a0725b9d78ff6efdc95a37e4f05072e79c63918; from baf8532a147d5b76681ce040e2c8f25a3f0e718d before 6dab421bfe06a59bf8f212a72e34673e8acf2018; 2.6.25 (not affected: before 2.6.25; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 5.16.19; from 5.17 before 5.17.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/057b53c4f87690d626203acef8b63d52a9bf2f43> (patch)
- <https://git.kernel.org/stable/c/6a0725b9d78ff6efdc95a37e4f05072e79c63918> (patch)
- <https://git.kernel.org/stable/c/6dab421bfe06a59bf8f212a72e34673e8acf2018> (patch)

## Sources

- CVE List: [CVE-2022-49178](https://www.cve.org/CVERecord?id=CVE-2022-49178), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-49178](https://nvd.nist.gov/vuln/detail/CVE-2022-49178), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-49178 · Whole record: https://cve.day/CVE-2022-49178.json · Rebuilt by cve.day 2026-11-25T22:58:20.254Z
