CVE-2022-49376 Details
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().
A NULL pointer dereference vulnerability has been identified in the Linux kernel's SCSI subsystem, specifically within the 'sd' driver. This issue arises when the 'sd_probe()' function encounters an early error before the 'sdkp->device' is fully initialized. In such cases, the 'sd_zbc_release_disk()' function is called, leading to a NULL pointer dereference when 'sd_is_zoned()' is invoked. The vulnerability has been addressed by removing the problematic call to 'sd_zbc_release_disk()' in the error handling path of 'sd_probe()'. This modification is safe and prevents any memory leakage of zone information, as the zone data for a zoned disk is only allocated when 'sd_revalidate_disk()' is called, ensuring that 'sdkp->disk_dev' is properly set and allowing for the necessary cleanup of disk zone information.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/05fbde3a77a4f1d62e4c4428f384288c1f1a0be5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/0fcb0b131cc90c8f523a293d84c58d0c7273c96f | kernel.org | Patch |
| https://git.kernel.org/stable/c/3733439593ad12f7b54ae35c273ea6f15d692de3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/78f8e96df06e2d04d82d4071c299b59d28744f47 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c1f0187025905e9981000d44a92e159468b561a8 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.10, < 5.10.122 >= 5.11, < 5.15.47 >= 5.16, < 5.17.15 >= 5.18, < 5.18.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 14, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |