# CVE-2024-27392: nvme: host: fix double-free of struct nvme_id_ns in ns_update_nuse()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-01T13:05:20.117Z
- Modified: 2026-08-05T11:29:25.994Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

nvme: host: fix double-free of struct nvme_id_ns in ns_update_nuse()

When nvme_identify_ns() fails, it frees the pointer to the struct
nvme_id_ns before it returns. However, ns_update_nuse() calls kfree()
for the pointer even when nvme_identify_ns() fails. This results in
KASAN double-free, which was observed with blktests nvme/045 with
proposed patches [1] on the kernel v6.8-rc7. Fix the double-free by
skipping kfree() when nvme_identify_ns() fails.

(As written by CVE List.)

## Affected

- Linux Linux: from a1a825ab6a60380240ca136596732fdb80bad87a before 534f9dc7fe495b3f9cc84363898ac50c5a25fccb; from a1a825ab6a60380240ca136596732fdb80bad87a before 8d0d2447394b13fb22a069f0330f9c49b7fff9d3; 6.8 (not affected: before 6.8; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.8 before 6.8.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/534f9dc7fe495b3f9cc84363898ac50c5a25fccb> (patch)
- <https://git.kernel.org/stable/c/8d0d2447394b13fb22a069f0330f9c49b7fff9d3> (patch)

## Sources

- CVE List: [CVE-2024-27392](https://www.cve.org/CVERecord?id=CVE-2024-27392), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-27392](https://nvd.nist.gov/vuln/detail/CVE-2024-27392), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-27392 · Whole record: https://cve.day/CVE-2024-27392.json · Rebuilt by cve.day 2026-11-25T22:58:39.815Z
