CVE-2024-50215
published high CVSS 3.1 · 8.1nvmet-auth: assign dh_key to NULL after kfree_sensitive
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < c94e965f766321641ec38e4eece9ce8884543244 · 7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < c60af16e1d6cc2237d58336546d6adfc067b6b8f · 7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < e61bd51e44409495d75847e9230736593e4c8710 · 7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < d2f551b1f72b4c508ab9298419f6feadc3b5d791 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.116 through 6.1.* (unaffected · semver) · 6.6.60 through 6.6.* (unaffected · semver) · 6.11.7 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.119-1 | DSA-5818-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-307.178.5.el8uek | ELSA-2025-20270 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.5.0-802.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.5.0-802.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-coreaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-develaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-modules-coreaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek64kaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek64k-coreaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek64k-modulesaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:5.15.0-307.178.5.el9uek | ELSA-2025-20270 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | libperfaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-570.12.1.0.1.el9_6 | ELSA-2025-6966 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-auth: assign dh_key to NULL after kfree_sensitive ctrl->dh_key might be used across multiple calls to nvmet_setup_dhgroup() for the same controller. So it's better to nullify it after release on error path in order to avoid double free later in nvmet_destroy_auth(). Found by Linux Verification Center (linuxtesting.org) with Svace.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - `nvmet_setup_dhgroup()` executes on behalf of remote NVMe-oF fabric commands — the admin Connect command (`nvmet_execute_admin_connect()`) and the AUTH_Send DH-HMAC-CHAP NEGOTIATE restart — delivered by nvmet-tcp on TCP/4420 (or RDMA/FC) from an arbitrary remote initiator. No local access to the target is needed to drive the vulnerable function. AC:H - Two preconditions lie entirely outside the attacker's control: `ctrl->dh_gid` must diverge from `host->dhchap_dhgroup_id` (the negotiate loop can only re-assign `dh_gid` to its existing value, so this requires an administrator changing `dhchap_dhgroup` via configfs between two setups), and `crypto_kpp_set_secret()` must fail, which happens only on a small GFP_KERNEL/MPI allocation failure or default-RNG failure that the kernel does not produce without OOM-killing first. PR:N - The code path is the authentication setup itself and runs before DH-HMAC-CHAP completes (`sq->authenticated == false`); the only credential involved is the host NQN, a non-secret identifier the attacker chooses in the Connect payload. No prior authentication or account on the target is required. UI:N - No victim action participates in the attack — the attacker alone issues Connect and AUTH_Send commands and later disconnects to drive `nvmet_ctrl_free()` → `nvmet_destroy_auth()`. The DH-group configfs setting is pre-existing system configuration, not user interaction. S:U - The double free corrupts kernel slab state within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - A double free of the 256–1024 byte `ctrl->dh_key` in a general-purpose kmalloc cache lets the same slab object be handed out twice; with the heap grooming the remote peer already has on the target (`kmalloc(tl, GFP_KERNEL)` with attacker-chosen `tl` in `nvmet_execute_auth_send()`), this yields a UAF-style read primitive over adjacent/overlapping kernel objects, including the DH private key material itself. I:H - The same aliased-allocation primitive gives an attacker-controlled write into an object another kernel subsystem believes it owns, corrupting SLUB freelist metadata and enabling control-flow hijacking in the classic double-free exploitation pattern. A:H - Even unexploited, the second `kfree_sensitive()` on the dangling pointer trips SLUB double-free detection (BUG/panic with `slub_debug` or `panic_on_oops`) or corrupts the freelist into a later fatal oops, taking down the storage target.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < c94e965f766321641ec38e4eece9ce8884543244 (affected · git)7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < c60af16e1d6cc2237d58336546d6adfc067b6b8f (affected · git)7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < e61bd51e44409495d75847e9230736593e4c8710 (affected · git)7a277c37d3522e9b2777d762bbbcecafae2b1f8d to < d2f551b1f72b4c508ab9298419f6feadc3b5d791 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.116 through 6.1.* (unaffected · semver)6.6.60 through 6.6.* (unaffected · semver)6.11.7 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-415 CWE-415 Double Free
References
5- https://git.kernel.org/stable/c/c60af16e1d6cc2237d58336546d6adfc067b6b8f
- https://git.kernel.org/stable/c/c94e965f766321641ec38e4eece9ce8884543244
- https://git.kernel.org/stable/c/d2f551b1f72b4c508ab9298419f6feadc3b5d791
- https://git.kernel.org/stable/c/e61bd51e44409495d75847e9230736593e4c8710
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
nvmet-auth: assign dh_key to NULL after kfree_sensitive
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- da7d5c0bba43e13e2f49d2db246bb1632fc94d42ad0c9ec7d66b89d6d77c7323
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record