# CVE-2022-49376: scsi: sd: Fix potential NULL pointer dereference

- 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.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2025-02-26T02:11:16.118Z
- Modified: 2026-06-17T05:17:52.310Z
- 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:

scsi: sd: Fix potential NULL pointer dereference

If sd_probe() sees an early error before sdkp->device is initialized,
sd_zbc_release_disk() is called. This causes a NULL pointer dereference
when sd_is_zoned() is called inside that function. Avoid this by removing
the call to sd_zbc_release_disk() in sd_probe() error path.

This change is safe and does not result in zone information memory leakage
because the zone information for a zoned disk is allocated only when
sd_revalidate_disk() is called, at which point sdkp->disk_dev is fully set,
resulting in sd_disk_release() being called when needed to cleanup a disk
zone information using sd_zbc_release_disk().

(As written by CVE List.)

## Affected

- Linux Linux: from 89d9475610771b5e5fe1879075f0fc9ba6e3755f before c1f0187025905e9981000d44a92e159468b561a8; from 89d9475610771b5e5fe1879075f0fc9ba6e3755f before 0fcb0b131cc90c8f523a293d84c58d0c7273c96f; from 89d9475610771b5e5fe1879075f0fc9ba6e3755f before 78f8e96df06e2d04d82d4071c299b59d28744f47; from 89d9475610771b5e5fe1879075f0fc9ba6e3755f before 3733439593ad12f7b54ae35c273ea6f15d692de3; from 89d9475610771b5e5fe1879075f0fc9ba6e3755f before 05fbde3a77a4f1d62e4c4428f384288c1f1a0be5; 4.10 (not affected: before 4.10; from 5.10.122 up to 5.10.*; from 5.15.47 up to 5.15.*; from 5.17.15 up to 5.17.*; from 5.18.4 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.10 before 5.10.122; from 5.11 before 5.15.47; from 5.16 before 5.17.15; from 5.18 before 5.18.4

## 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/c1f0187025905e9981000d44a92e159468b561a8> (patch)
- <https://git.kernel.org/stable/c/0fcb0b131cc90c8f523a293d84c58d0c7273c96f> (patch)
- <https://git.kernel.org/stable/c/78f8e96df06e2d04d82d4071c299b59d28744f47> (patch)
- <https://git.kernel.org/stable/c/3733439593ad12f7b54ae35c273ea6f15d692de3> (patch)
- <https://git.kernel.org/stable/c/05fbde3a77a4f1d62e4c4428f384288c1f1a0be5> (patch)

## Sources

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

---

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