cve.bz

CVE-2025-21927 linux linux kernel: Out-of-bounds Write

7.8 highEPSS 0.6%Fix available

High (7.8) in linux linux kernel. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu() nvme_tcp_recv_pdu() doesn't check the validity of the header length. When header digests are enabled, a target might send a packet with an invalid header length (e.g. 255), causing nvme_tcp_verify_hdgst() to access memory outside the allocated area and cause memory corruptions by overwriting it with the calculated digest. Fix this by rejecting packets with an unexpected header length.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21927 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21927?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21927?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21927 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.0 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.191
Linux6.66.6.160
Linux6.126.12.19
Linux6.136.13.7
Linuxlater releases6.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.192-1DEBIAN-CVE-2025-21927
Debian13, 14linux6.12.19-1DEBIAN-CVE-2025-21927
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-21927
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-21927
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-21927
Ubuntu22.04:LTSlinux, linux-aws, linux-gcp and 47 moreno fix listedUBUNTU-CVE-2025-21927
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1039.41~22.04.1UBUNTU-CVE-2025-21927 USN-7766-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1036.42~22.04.1UBUNTU-CVE-2025-21927 USN-7802-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1040.42~22.04.1UBUNTU-CVE-2025-21927 USN-7766-1
Ubuntu22.04:LTSlinux-hwe-6.86.8.0-85.85~22.04.1UBUNTU-CVE-2025-21927 USN-7764-2 USN-7801-1
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1037.37~22.04.1UBUNTU-CVE-2025-21927 USN-7779-1
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-84.84.1~22.04.1UBUNTU-CVE-2025-21927 USN-7764-1
Ubuntu22.04:LTSlinux-nvidia-6.86.8.0-1039.42~22.04.1UBUNTU-CVE-2025-21927 USN-7765-1
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1037.38~22.04.1UBUNTU-CVE-2025-21927 USN-7801-3
35 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.16.1.el9_6RHSA-2025:7423
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.4.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.4.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.16.1.el9_6RHSA-2025:7423
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 44 more0:5.14.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-503_15_1, kpatch-patch-5_14_0-503_15_1-debuginfo, kpatch-patch-5_14_0-503_15_1-debugsource0:1-4.el9_5RHSA-2025:4499
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-503_26_1, kpatch-patch-5_14_0-503_26_1-debuginfo, kpatch-patch-5_14_0-503_26_1-debugsource0:1-3.el9_5RHSA-2025:4499
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.16.1.el9_6RHSA-2025:7423
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-503.40.1.el9_5RHSA-2025:4341
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.16.1.el9_6RHSA-2025:7423
33 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.50.1SUSE-SU-2025:01614-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.3.1SUSE-SU-2025:01951-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.258.1SUSE-SU-2025:01600-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_681-8.3.1SUSE-SU-2025:01600-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_111-150600.1.3.2SUSE-SU-2025:01964-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_111-150600.13.3.1SUSE-SU-2025:01614-1
SUSELinux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7_Update_11-150700.15.3.1SUSE-SU-2025:01951-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-64kb, kernel-source, kernel-default and 1 more6.4.0-150600.23.50.1SUSE-SU-2025:01614-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-default-base6.4.0-150600.23.50.1.150600.12.22.1SUSE-SU-2025:01614-1
SUSELinux Enterprise Module for Basesystem 15 SP7kernel-64kb, kernel-source, kernel-default and 1 more6.4.0-150700.53.3.1SUSE-SU-2025:01951-1
SUSELinux Enterprise Module for Basesystem 15 SP7kernel-default-base6.4.0-150700.53.3.1.150700.17.2.1SUSE-SU-2025:01951-1
SUSELinux Enterprise Module for Confidential Computing Technical Preview 15 SP6kernel-coco, kernel-syms-coco, kernel-coco_debug and 1 more6.4.0-15061.21.coco15sp6.1SUSE-SU-2025:01919-1
16 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.50.1SUSE-SU-2025:01614-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.37.1SUSE-SU-2025:01707-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.50.1.150600.12.22.1SUSE-SU-2025:01614-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.39.1SUSE-SU-2025:01964-1
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.16.1.el9_6ALSA-2025:7423
Rocky Linux9kernel0:5.14.0-503.40.1.el9_5RLSA-2025:4341
Azure Linux2kernelno fix listedAZL-59952
Azure Linux3kernelno fix listedAZL-59922
Alpaquita23linux-lts6.1.191-r0BELL-CVE-2025-21927
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-21927
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-21927

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw results from an improper bounds check, which an attacker could exploit by sending a packet with a too-large header. The driver processing that header will then both read beyond the bounds of the buffer it has allocated, and will also alter memory outside of the buffer when it writes the result of digest calculations. An attacker could thus read otherwise inaccessible kernel memory, causing a denial of service or exfiltrating sensitive data, or write out of bounds, which could lead to an escalation of privileges.

While NVMe over fabric is typically used in the context of a single system, Red Hat's assessment suggests an Attack Vector of Adjacent. This is due to the possibility of NVMe being used as a storage solution for a cluster or datacenter.

The NVMe/TCP driver in RHEL 8 was released as a Technology Preview feature and was never considered stable or fully supported. Therefore, RHEL 8 is out of support scope for this CVE.

Red Hat's mitigation

To mitigate this issue, prevent the `nvme_tcp` module from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically. Note that this will make NVMe over TCP fabrics unavailable, and as such is not a suitable mitigation for systems relying on that technology.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.11.1.el10_0Fixed 2025-05-13RHSA-2025:7501
Red Hat Enterprise Linux 9kernel-0:5.14.0-503.40.1.el9_5Fixed 2025-04-30RHSA-2025:4341
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.16.1.el9_6Fixed 2025-05-13RHSA-2025:7423
Red Hat Enterprise Linux 9kpatch-patchFixed 2025-05-06RHSA-2025:4499
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-0:5.14.0-70.131.1.el9_0Fixed 2025-05-05RHSA-2025:4469
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-rt-0:5.14.0-70.131.1.rt21.203.el9_0Fixed 2025-05-06RHSA-2025:4471
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskpatch-patchFixed 2025-05-06RHSA-2025:4498
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.115.1.el9_2Fixed 2025-04-30RHSA-2025:4339
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.115.1.rt14.400.el9_2Fixed 2025-04-30RHSA-2025:4340
Red Hat Enterprise Linux 9.2 Extended Update Supportkpatch-patchFixed 2025-05-06RHSA-2025:4496
Red Hat Enterprise Linux 9.4 Extended Update Supportkernel-0:5.14.0-427.67.1.el9_4Fixed 2025-05-06RHSA-2025:4509
Red Hat Enterprise Linux 9.4 Extended Update Supportkpatch-patchFixed 2025-05-06RHSA-2025:4497
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelOut of support scope
Red Hat Enterprise Linux 8kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21927.

References

Check your stackJSON