CVE-2022-50402

Source
https://cve.org/CVERecord?id=CVE-2022-50402
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50402.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50402
Downstream
Related
Published
2025-09-18T16:03:48.184Z
Modified
2026-05-28T03:53:18.952510031Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
Details

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

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

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

v2: update the check to include other dereference

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50402.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d60b479d177a5735b6b4db6ee5280ef6653f50e7
Fixed
21e9aac9a74d30907d44bae0d24c036cb3819406
Fixed
5d8d046f3dba939e74e2414f009df426700430ed
Fixed
100caacfa0ed26e061954c90cdc835d42f709536
Fixed
b621d17fe8b079574c773800148fb86907f3445d
Fixed
ff3b7e12bc9f50de05c9d82b5b79e23e5be888f1
Fixed
99bef41f8e8d1d52b5cb34f2f193f1346192752b
Fixed
3bd548e5b819b8c0f2c9085de775c5c7bff9052f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50402.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.5.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50402.json"