# CVE-2022-50402: drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-18T16:03:48.184Z
- Modified: 2026-06-17T05:23:27.893Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()

Check the return value of md_bitmap_get_counter() in case it returns
NULL pointer, which will result in a null pointer dereference.

v2: update the check to include other dereference

(As written by CVE List.)

## Affected

- Linux Linux: from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 21e9aac9a74d30907d44bae0d24c036cb3819406; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 5d8d046f3dba939e74e2414f009df426700430ed; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 100caacfa0ed26e061954c90cdc835d42f709536; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before b621d17fe8b079574c773800148fb86907f3445d; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before ff3b7e12bc9f50de05c9d82b5b79e23e5be888f1; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 99bef41f8e8d1d52b5cb34f2f193f1346192752b; from d60b479d177a5735b6b4db6ee5280ef6653f50e7 before 3bd548e5b819b8c0f2c9085de775c5c7bff9052f; 3.5 (not affected: before 3.5; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.5 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## Every score

- CISA-ADP: 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`
- 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/21e9aac9a74d30907d44bae0d24c036cb3819406> (patch)
- <https://git.kernel.org/stable/c/5d8d046f3dba939e74e2414f009df426700430ed> (patch)
- <https://git.kernel.org/stable/c/100caacfa0ed26e061954c90cdc835d42f709536> (patch)
- <https://git.kernel.org/stable/c/b621d17fe8b079574c773800148fb86907f3445d> (patch)
- <https://git.kernel.org/stable/c/ff3b7e12bc9f50de05c9d82b5b79e23e5be888f1> (patch)
- <https://git.kernel.org/stable/c/99bef41f8e8d1d52b5cb34f2f193f1346192752b> (patch)
- <https://git.kernel.org/stable/c/3bd548e5b819b8c0f2c9085de775c5c7bff9052f> (patch)

## Sources

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

---

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