cve.bz

CVE-2025-40048 linux linux

7.5 highEPSS 0.6%Fix available

High (7.5) in linux linux. 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: uio_hv_generic: Let userspace take care of interrupt mask Remove the logic to set interrupt mask by default in uio_hv_generic driver as the interrupt mask value is supposed to be controlled completely by the user space. If the mask bit gets changed by the driver, concurrently with user mode operating on the ring, the mask bit may be set when it is supposed to be clear, and the user-mode driver will miss an interrupt which will cause a hang. For eg- when the driver sets inbound ring buffer interrupt mask to 1, the host does not interrupt the guest on the UIO VMBus channel. However, setting the mask does not prevent the host from putting a message in the inbound ring buffer. So let’s assume that happens, the host puts a message into the ring buffer but does not interrupt. Subsequently, the user space code in the guest sets the inbound ring buffer interrupt mask to 0, saying “Hey, I’m ready for interrupts”. User space code then calls pread() to wait for an interrupt. Then one of two things happens: * The host never sends another message. So the pread() waits forever. * The host does send another message. But because there’s already a message in the ring buffer, it doesn’t generate an interrupt. This is the correct behavior, because the host should only send an interrupt when the inbound ring buffer transitions from empty to not-empty. Adding an additional message to a ring buffer that is not empty is not supposed to generate an interrupt on the guest. Since the guest is waiting in pread() and not removing messages from the ring buffer, the pread() waits forever. This could be easily reproduced in hv_fcopy_uio_daemon if we delay setting interrupt mask to 0. Similarly if hv_uio_channel_cb() sets the interrupt_mask to 1, there’s a race condition. Once user space empties the inbound ring buffer, but before user space sets interrupt_mask to 0, the host could put another message in the ring buffer but it wouldn’t interrupt. Then the next pread() would hang. Fix these by removing all instances where interrupt_mask is changed, while keeping the one in set_event() unchanged to enable userspace control the interrupt mask by writing 0/1 to /dev/uioX.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st 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: yes · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Linux Linux: fixed in 5.4.301
  • Linux Linux: fixed in 5.10.246
  • Linux Linux: fixed in 5.15.195
  • Linux Linux: fixed in 6.1.156
  • Linux Linux: fixed in 6.6.112
  • Linux Linux: fixed in 6.12.53
  • Linux Linux: fixed in 6.17.3
  • Linux Linux: fixed in 6.18
  • Debian, Ubuntu, SUSE, openSUSE, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-40048 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40048?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40048?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-40048 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
Linux4.10 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.301
Linux5.105.10.246
Linux5.155.15.195
Linux6.16.1.156
Linux6.66.6.112
Linux6.126.12.53
Linux6.176.17.3
Linuxlater releases6.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.247-1DLA-4404-1
Debian11linux-6.16.1.158-1~deb11u1DLA-4379-1
Debian12linux6.1.158-1DEBIAN-CVE-2025-40048 DSA-6053-1
Debian13linux6.12.57-1DEBIAN-CVE-2025-40048
Debian14linux6.17.6-1DEBIAN-CVE-2025-40048
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-40048
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-40048
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-40048
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-170.180UBUNTU-CVE-2025-40048 USN-8033-1
Ubuntu22.04:LTSlinux-aws5.15.0-1100.107UBUNTU-CVE-2025-40048 USN-8033-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1050.53~22.04.1UBUNTU-CVE-2025-40048 USN-8095-4
Ubuntu22.04:LTSlinux-azure5.15.0-1109.118UBUNTU-CVE-2025-40048 USN-8163-2
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-40048 USN-8126-1
Ubuntu22.04:LTSlinux-azure-fde5.15.0-1109.118.1UBUNTU-CVE-2025-40048
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1058.65~22.04.1UBUNTU-CVE-2025-40048
Ubuntu22.04:LTSlinux-gcp5.15.0-1100.109UBUNTU-CVE-2025-40048 USN-8033-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1052.55~22.04.1UBUNTU-CVE-2025-40048 USN-8095-1
76 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.187.3SUSE-SU-2026:0029-1
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.81.3SUSE-SU-2025:4422-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.25.1SUSE-SU-2025:4393-1
SUSELinux Enterprise High Availability Extension 16.0kernel-default6.12.0-160000.7.1SUSE-SU-2025:21180-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150400.24.187.3SUSE-SU-2026:0029-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.187.3.150400.24.96.3SUSE-SU-2026:0029-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morekernel-docs, kernel-syms5.14.21-150400.24.187.1SUSE-SU-2026:0029-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.130.3SUSE-SU-2025:4506-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.130.3.150500.6.63.3SUSE-SU-2025:4506-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morekernel-docs, kernel-syms5.14.21-150500.55.130.1SUSE-SU-2025:4506-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.283.1SUSE-SU-2025:4515-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_751-8.3.1SUSE-SU-2025:4515-1
44 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-docs, kernel-syms and 1 more6.4.0-150600.23.81.1SUSE-SU-2025:4422-1
openSUSELeap 15.6kernel-64kb, kernel-debug, kernel-default and 3 more6.4.0-150600.23.81.3SUSE-SU-2025:4422-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.58.1SUSE-SU-2025:4505-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.81.3.150600.12.36.3SUSE-SU-2025:4422-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.61.1SUSE-SU-2025:4521-1
openSUSELeap 15.6kernel-source6.4.0-150600.23.81.2SUSE-SU-2025:4422-1
openSUSELeap 16.0kernel-default-base6.12.0-160000.6.1.160000.2.4openSUSE-SU-2025:20091-1
openSUSELeap 16.0kernel-rt, dtb-aarch64, kernel-64kb and 8 more6.12.0-160000.7.1openSUSE-SU-2025:20091-1
openSUSETumbleweedkernel-source6.17.7-1.1openSUSE-SU-2025:15702-1
openSUSETumbleweedkernel-source-longterm6.18.16-1.1openSUSE-SU-2026:10301-1
Azure Linux3kernel6.6.112.1-2AZL-68909
Alpaquita23linux-lts6.1.156-r0BELL-CVE-2025-40048
Alpaquita25linux-lts6.12.53-r0BELL-CVE-2025-40048
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-40048

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; 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 · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The uio_hv_generic driver raced userspace by unilaterally toggling the ring’s interrupt_mask. If the kernel set the mask while userspace was operating on the ring, an inbound message could arrive without an interrupt, and subsequent pread() would block indefinitely since no “empty→non-empty” transition occurs.

This affects the guest only and can be triggered only by a local user with access to the guest’s UIO channel (e.g. /dev/uioX) — access which is not granted to ordinary users by default.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelFix deferred
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelFix deferred
Red Hat Enterprise Linux 7kernel-rtFix deferred
Red Hat Enterprise Linux 8kernelFix deferred
Red Hat Enterprise Linux 8kernel-rtFix deferred
Red Hat Enterprise Linux 9kernelFix deferred
Red Hat Enterprise Linux 9kernel-rtFix deferred

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-40048.

References

Check your stackJSON