CVE-2024-42276

Description

nvme-pci in linux kernel does not call nvme_unmap_data for the same instances of nvme_map_data, which can lead to incorrect dereferencing.

Statement

A moderate-impact flaw was found in the Linux kernel NVMe PCI driver (nvme-pci) as shipped in Red Hat Enterprise Linux 9 and Fedora. nvme_map_data() is only called when a request has physical segments, but nvme_unmap_data() was invoked without the same condition check, so it could run for a request for which no data had ever been mapped. This results in an incorrect pointer dereference in the kernel that can at most cause a system crash or denial of service. Red Hat rates this flaw Moderate (CVSS 4.4, CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H) because triggering the vulnerable path requires local access with high privileges and the issue has no confidentiality or integrity impact; this is lower than the severity recorded in the upstream CVE record. Red Hat Enterprise Linux 6 and 8 and the hosted OpenShift (ARO and OSD) clusters are not affected by this flaw, and Red Hat Enterprise Linux 7 is out of support. Fixes for the affected Red Hat Enterprise Linux 9 kernel and kernel-rt packages are being pursued by the Red Hat kernel engineering team as part of the delegated resolution.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.45.57.8
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneNoneHigh
Integrity ImpactNoneNoneHigh
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Crash, Exit, or Restart

NULL pointer dereferences usually result in the failure of the process unless exception handling (on some platforms) is available and implemented. Even when exception handling is being used, it can still be very difficult to return the software to a safe state of operation.

Integrity,Confidentiality

Technical Impact: Execute Unauthorized Code or Commands; Read Memory; Modify Memory

In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution.

Frequently Asked Questions

Want to get errata notifications? Sign up here.