CVE-2022-50402Published Sep 18, 2025 · Sep 18Updated Oct 28
drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d60b479d177a5735b6b4db6ee5280ef6653f50e7 · < 99bef41f8e8d1d52b5cb34f2f193f1346192752b| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel’s md-bitmap driver can dereference a NULL pointer if md_bitmap_get_counter() returns NULL. The input does not specify how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified in the input.