CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.8) in linux linux. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2025-40118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40118?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40118?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-40118 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | from 5.4.293 before 5.4.301 |
| Linux | from 5.10.237 before 5.10.246 |
| Linux | from 5.15.181 before 5.15.195 |
| Linux | from 6.1.136 before 6.1.156 |
| Linux | from 6.6.89 before 6.6.112 |
| Linux | from 6.12.26 before 6.12.53 |
| Linux | from 6.14.5 before 6.15 |
| Linux | 6.15 and later |
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.4 | 5.4.301 |
| Linux | 5.10 | 5.10.246 |
| Linux | 5.15 | 5.15.195 |
| Linux | 6.1 | 6.1.156 |
| Linux | 6.6 | 6.6.112 |
| Linux | 6.12 | 6.12.53 |
| Linux | 6.17 | 6.17.3 |
| Linux | later releases | 6.18 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | linux | 5.10.247-1 | DLA-4404-1 |
| Debian | 11 | linux-6.1 | 6.1.158-1~deb11u1 | DLA-4379-1 |
| Debian | 12 | linux | 6.1.158-1 | DEBIAN-CVE-2025-40118 |
| Debian | 13 | linux | 6.12.57-1 | DEBIAN-CVE-2025-40118 |
| Debian | 14 | linux | 6.17.6-1 | DEBIAN-CVE-2025-40118 |
| Ubuntu | 16.04:LTS | linux-hwe-edge | no fix listed | UBUNTU-CVE-2025-40118 |
| Ubuntu | 18.04:LTS | linux-gcp, linux-hwe, linux-oem and 12 more | no fix listed | UBUNTU-CVE-2025-40118 |
| Ubuntu | 20.04:LTS | linux-gke, linux-gkeop, linux-riscv and 26 more | no fix listed | UBUNTU-CVE-2025-40118 |
| Ubuntu | 22.04:LTS | linux, linux-lowlatency | 5.15.0-170.180 | UBUNTU-CVE-2025-40118 USN-8033-1 |
| Ubuntu | 22.04:LTS | linux-aws | 5.15.0-1100.107 | UBUNTU-CVE-2025-40118 USN-8033-1 |
| Ubuntu | 22.04:LTS | linux-aws-6.8 | 6.8.0-1050.53~22.04.1 | UBUNTU-CVE-2025-40118 USN-8095-4 |
| Ubuntu | 22.04:LTS | linux-azure | 5.15.0-1109.118 | UBUNTU-CVE-2025-40118 USN-8163-2 |
| Ubuntu | 22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | 22.04:LTS | linux-azure-fde | 5.15.0-1109.118.1 | UBUNTU-CVE-2025-40118 |
| Ubuntu | 22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1058.65~22.04.1 | UBUNTU-CVE-2025-40118 |
| Ubuntu | 22.04:LTS | linux-gcp | 5.15.0-1100.109 | UBUNTU-CVE-2025-40118 USN-8033-1 |
| Ubuntu | 22.04:LTS | linux-gcp-6.8 | 6.8.0-1052.55~22.04.1 | UBUNTU-CVE-2025-40118 USN-8095-1 |
| 69 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| SUSE | Linux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 more | kernel-default | 6.4.0-150600.23.81.3 | SUSE-SU-2025:4422-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 more | kernel-default | 6.4.0-150700.53.25.1 | SUSE-SU-2025:4393-1 |
| SUSE | Linux Enterprise High Availability Extension 16.0 | kernel-default | 6.12.0-160000.8.1 | SUSE-SU-2026:20021-1 |
| SUSE | Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_18 | 1-150600.1.3.1 | SUSE-SU-2025:4521-1 |
| SUSE | Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_18 | 1-150600.13.3.3 | SUSE-SU-2025:4422-1 |
| SUSE | Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7-RT_Update_7 | 1-150700.1.3.1 | SUSE-SU-2025:4516-1 |
| SUSE | Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7_Update_7 | 1-150700.15.3.1 | SUSE-SU-2025:4393-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6 | kernel-64kb, kernel-default, kernel-zfcpdump | 6.4.0-150600.23.81.3 | SUSE-SU-2025:4422-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6 | kernel-default-base | 6.4.0-150600.23.81.3.150600.12.36.3 | SUSE-SU-2025:4422-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6 | kernel-source | 6.4.0-150600.23.81.2 | SUSE-SU-2025:4422-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP7 | kernel-64kb, kernel-source, kernel-default and 1 more | 6.4.0-150700.53.25.1 | SUSE-SU-2025:4393-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP7 | kernel-default-base | 6.4.0-150700.53.25.1.150700.17.17.1 | SUSE-SU-2025:4393-1 |
| 19 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.6 | dtb-aarch64, kernel-docs, kernel-syms and 1 more | 6.4.0-150600.23.81.1 | SUSE-SU-2025:4422-1 |
| openSUSE | Leap 15.6 | kernel-64kb, kernel-debug, kernel-default and 3 more | 6.4.0-150600.23.81.3 | SUSE-SU-2025:4422-1 |
| openSUSE | Leap 15.6 | kernel-azure, kernel-syms-azure, kernel-source-azure | 6.4.0-150600.8.58.1 | SUSE-SU-2025:4505-1 |
| openSUSE | Leap 15.6 | kernel-default-base | 6.4.0-150600.23.81.3.150600.12.36.3 | SUSE-SU-2025:4422-1 |
| openSUSE | Leap 15.6 | kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more | 6.4.0-150600.10.61.1 | SUSE-SU-2025:4521-1 |
| openSUSE | Leap 15.6 | kernel-source | 6.4.0-150600.23.81.2 | SUSE-SU-2025:4422-1 |
| openSUSE | Leap 16.0 | kernel-default-base | 6.12.0-160000.8.1.160000.2.5 | openSUSE-SU-2025:20172-1 |
| openSUSE | Leap 16.0 | kernel-rt, dtb-aarch64, kernel-64kb and 8 more | 6.12.0-160000.8.1 | openSUSE-SU-2025:20172-1 |
| Alpaquita | 23 | linux-lts | 6.1.156-r0 | BELL-CVE-2025-40118 |
| Alpaquita | 25 | linux-lts | 6.12.53-r0 | BELL-CVE-2025-40118 |
| Alpaquita | stream | linux-lts | 6.18.35-r1 | BELL-CVE-2025-40118 |
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; 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 rates this Moderate.
A moderate severity flaw was found in the Linux kernel PM80xx SAS/SCSI driver (pm8001_sas). When the pm80xx driver module is unloaded (rmmod) on a system where a SAS device is connected through an expander, the driver used the attached_phy value - which for a device behind an expander holds the remote expander phy id - to index the pm8001_ha->phy array, which only contains entries for the HBA's local phys. Because an expander can have more phys than the HBA, this results in an out-of-bounds array access (reported by UBSAN) that may lead to undefined behavior in the kernel at module unload time. Triggering the issue requires local privileged access to unload the kernel module together with the specific hardware configuration of a SAS expander connected to the HBA. Red Hat assessed the impact as moderate (CVSS 3.1 score 5.8), lower than the CVE.org severity of 7.8 (Important), due to the high attack complexity, the local privileges required, and the limited confidentiality and integrity impact of this unload-time out-of-bounds access. No Red Hat product is currently affected: Red Hat Enterprise Linux 7 through 10 (kernel and kernel-rt) and Red Hat In-Vehicle OS 1.1 are marked not affected because the vulnerable code is not present in the shipped kernels, and Red Hat Enterprise Linux 6 Extended Lifecycle Support is out of support scope for this issue.
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | |
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | |
| Red Hat Enterprise Linux 7 | kernel | Not affected | |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | |
| Red Hat Enterprise Linux 8 | kernel | Not affected | |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | |
| Red Hat Enterprise Linux 9 | kernel | Not affected | |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected |
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-40118.