synced 2 MIN AGO
01 Record

CVE-2025-40040

mm/ksm: fix flag-dropping behavior in ksm_madvise

HighPUBLISHEDCNA: Linux
CNA base score7.8 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

02 Description

mm/ksm: fix flag-dropping behavior in ksm_madvise

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.37% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 31.3% of scored records. A rank, not a probability.
NVD base score
5.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-10-19.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2025-10-28 11:48Z1 YR AGO
Last updated
2026-10-15 22:02Z13 DAYS AGO
Reserved
2025-04-16
Assigning CNA
Linux
Record state
PUBLISHED
Severity
High (CVSS 7.8)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
No CWE assigned
Data version
5.2
Document digest
79f4b9eb8ebb1bda7b60002f4156f223d5dd2efdfdd4c899fe6b0cc66fd7dd3a

05 Affected products

VendorProductVersionsPlatforms
LinuxLinux63c17fb8e5a46a16e10e82005748837fd11a2024 to < 850f1ea245bdc0ce6a3fd36bfb80d8cf9647cb71, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < 788e5385d0ff69cdba1cabccb9dab8d9647b9239, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < b69f19244c2b6475c8a6eb72f0fb0d53509e48cd, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < 41cb9fd904fe0c39d52e82dd84dc3c96b7aa9693, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < 92b82e232b8d8b116ac6e57aeae7a6033db92c60, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < ac50c6e0a8f91a02b681af81abb2362fbb67cc18, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < 76385629f45740b7888f8fcd83bde955b10f61fe, 63c17fb8e5a46a16e10e82005748837fd11a2024 to < f04aad36a07cc17b7a5d5b9a2d386ce6fae63e93, 4.6—

06 References

07 Fixed in

Debian 12

  • linux
    Fixed in 6.1.158-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • linux
    Fixed in 6.12.57-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • linux
    Fixed in 6.17.6-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • linux-hwe-edge
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • linux-aws-5.0
    No fix yet
  • linux-aws-5.3
    No fix yet
  • linux-azure
    No fix yet
  • linux-azure-5.3
    No fix yet
  • linux-azure-edge
    No fix yet
  • linux-gcp
    No fix yet
  • linux-gcp-5.3
    No fix yet
  • linux-gke-4.15
    No fix yet
  • linux-gke-5.4
    No fix yet
  • linux-gkeop-5.4
    No fix yet
  • linux-hwe
    No fix yet
  • linux-hwe-edge
    No fix yet
  • linux-oem
    No fix yet
  • linux-oracle-5.0
    No fix yet
  • linux-oracle-5.3
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • linux-aws-5.11
    No fix yet
  • linux-aws-5.13
    No fix yet
  • linux-aws-5.8
    No fix yet
  • linux-azure-5.11
    No fix yet
  • linux-azure-5.13
    No fix yet
  • linux-azure-5.8
    No fix yet
  • linux-azure-fde
    No fix yet
  • linux-gcp-5.11
    No fix yet
  • linux-gcp-5.13
    No fix yet
  • linux-gcp-5.8
    No fix yet
  • linux-gke
    No fix yet
  • linux-gke-5.15
    No fix yet
  • linux-gkeop
    No fix yet
  • linux-gkeop-5.15
    No fix yet
  • linux-hwe-5.11
    No fix yet
  • linux-hwe-5.13
    No fix yet
  • linux-hwe-5.8
    No fix yet
  • linux-intel-5.13
    No fix yet
  • linux-oem-5.10
    No fix yet
  • linux-oem-5.13
    No fix yet
  • linux-oem-5.14
    No fix yet
  • linux-oem-5.6
    No fix yet
  • linux-oracle-5.11
    No fix yet
  • linux-oracle-5.13
    No fix yet
  • linux-oracle-5.8
    No fix yet
  • linux-raspi2
    No fix yet
  • linux-riscv
    No fix yet
  • linux-riscv-5.11
    No fix yet
  • linux-riscv-5.8
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • linux
    Fixed in 5.15.0-173.183
  • linux-allwinner-5.19
    No fix yet
  • linux-aws
    Fixed in 5.15.0-1103.110
  • linux-aws-5.19
    No fix yet
  • linux-aws-6.2
    No fix yet
  • linux-aws-6.5
    No fix yet
  • linux-aws-6.8
    No fix yet
  • linux-azure
    Fixed in 5.15.0-1109.118
  • linux-azure-5.19
    No fix yet
  • linux-azure-6.2
    No fix yet
  • linux-azure-6.5
    No fix yet
  • linux-azure-6.8
    No fix yet
  • linux-azure-fde
    Fixed in 5.15.0-1109.118.1
  • linux-azure-fde-5.19
    No fix yet
  • linux-azure-fde-6.2
    No fix yet
  • linux-azure-fde-6.8
    No fix yet
  • linux-gcp
    Fixed in 5.15.0-1103.112
  • linux-gcp-5.19
    No fix yet
  • linux-gcp-6.2
    No fix yet
  • linux-gcp-6.5
    No fix yet
  • linux-gcp-6.8
    No fix yet
  • linux-gke
    Fixed in 5.15.0-1099.105
  • linux-gkeop
    Fixed in 5.15.0-1086.94
  • linux-hwe-5.19
    No fix yet
  • linux-hwe-6.2
    No fix yet
  • linux-hwe-6.5
    No fix yet
  • linux-hwe-6.8
    No fix yet
  • linux-ibm
    Fixed in 5.15.0-1097.100
  • linux-ibm-6.8
    No fix yet
  • linux-intel-iot-realtime
    No fix yet
  • linux-intel-iotg
    Fixed in 5.15.0-1098.104
  • linux-kvm
    Fixed in 5.15.0-1095.100
  • linux-lowlatency
    Fixed in 5.15.0-173.183
  • linux-lowlatency-hwe-5.19
    No fix yet
  • linux-lowlatency-hwe-6.2
    No fix yet
  • linux-lowlatency-hwe-6.5
    No fix yet
  • linux-lowlatency-hwe-6.8
    No fix yet
  • linux-nvidia
    Fixed in 5.15.0-1098.99
  • linux-nvidia-6.2
    No fix yet
  • linux-nvidia-6.5
    No fix yet

20 further packages in Ubuntu 22.04 LTS not shown (first 40 listed).

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • linux
    No fix yet
  • linux-aws
    No fix yet
  • linux-aws-6.14
    No fix yet
  • linux-aws-6.17
    Fixed in 6.17.0-1007.7~24.04.1
  • linux-azure
    No fix yet
  • linux-azure-6.11
    No fix yet
  • linux-azure-6.14
    No fix yet
  • linux-azure-fde
    No fix yet
  • linux-azure-fde-6.14
    No fix yet
  • linux-azure-fde-6.17
    No fix yet
  • linux-azure-nvidia
    No fix yet
  • linux-azure-nvidia-6.14
    No fix yet
  • linux-gcp
    No fix yet
  • linux-gcp-6.11
    No fix yet
  • linux-gcp-6.14
    No fix yet
  • linux-gcp-6.17
    Fixed in 6.17.0-1008.8~24.04.1
  • linux-gke
    No fix yet
  • linux-gkeop
    No fix yet
  • linux-hwe-6.11
    No fix yet
  • linux-hwe-6.14
    No fix yet
  • linux-ibm
    No fix yet
  • linux-lowlatency
    No fix yet
  • linux-lowlatency-hwe-6.11
    No fix yet
  • linux-nvidia
    No fix yet
  • linux-nvidia-6.11
    No fix yet
  • linux-nvidia-6.17
    Fixed in 6.17.0-1008.8
  • linux-nvidia-lowlatency
    No fix yet
  • linux-nvidia-tegra
    Fixed in 6.8.0-1035.38
  • linux-oem-6.11
    No fix yet
  • linux-oem-6.14
    No fix yet
  • linux-oem-6.17
    Fixed in 6.17.0-1011.11
  • linux-oem-6.8
    No fix yet
  • linux-oracle
    No fix yet
  • linux-oracle-6.14
    No fix yet
  • linux-oracle-6.17
    Fixed in 6.17.0-1007.7~24.04.1
  • linux-raspi
    No fix yet
  • linux-raspi-realtime
    No fix yet
  • linux-realtime
    No fix yet
  • linux-riscv
    No fix yet
  • linux-riscv-6.14
    No fix yet

2 further packages in Ubuntu 24.04 LTS not shown (first 40 listed).

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 25.10

  • linux
    Fixed in 6.17.0-14.14
  • linux-aws
    Fixed in 6.17.0-1007.7
  • linux-azure
    Fixed in 6.17.0-1008.8
  • linux-azure-fde
    No fix yet
  • linux-gcp
    Fixed in 6.17.0-1007.7
  • linux-oracle
    Fixed in 6.17.0-1007.7
  • linux-raspi
    Fixed in 6.17.0-1008.8
  • linux-realtime
    Fixed in 6.17.0-1006.7
  • linux-riscv
    Fixed in 6.17.0-14.14.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Nvidia-BlueField 22.04 LTS

  • linux-bluefield
    Fixed in 5.15.0-1086.88

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Nvidia-BlueField 24.04 LTS

  • linux-bluefield
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • linux-aws-5.15
    Fixed in 5.15.0-1103.110~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-azure-5.15
    Fixed in 5.15.0-1110.119~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-gcp-5.15
    Fixed in 5.15.0-1103.112~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-hwe-5.15
    Fixed in 5.15.0-173.183~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-ibm-5.15
    Fixed in 5.15.0-1097.100~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-intel-iotg-5.15
    Fixed in 5.15.0-1098.104~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-lowlatency-hwe-5.15
    Fixed in 5.15.0-173.183~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-nvidia-tegra-5.15
    Fixed in 5.15.0-1055.55~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-oracle-5.15
    Fixed in 5.15.0-1100.106~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
  • linux-riscv-5.15
    Fixed in 5.15.0-1097.101~20.04.1
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-preview 22.04 LTS

  • linux-aws-fips
    No fix yet
  • linux-azure-fips
    No fix yet
  • linux-fips
    No fix yet
  • linux-gcp-fips
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 22.04 LTS

  • linux-aws-fips
    Fixed in 5.15.0-1103.110+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-azure-fips
    Fixed in 5.15.0-1109.118+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-fips
    Fixed in 5.15.0-173.183+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-gcp-fips
    Fixed in 5.15.0-1103.112+fips1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro FIPS-updates 24.04 LTS

  • linux-aws-fips
    No fix yet
  • linux-azure-fips
    No fix yet
  • linux-fips
    No fix yet
  • linux-gcp-fips
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro Realtime 22.04 LTS

  • linux-intel-iot-realtime
    Fixed in 5.15.0-1094.96
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime
    Fixed in 5.15.0-1102.111
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • linux-realtime-6.8
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro Realtime 24.04 LTS

  • linux-raspi-realtime
    No fix yet
  • linux-realtime
    No fix yet
  • linux-realtime-6.14
    No fix yet
  • linux-realtime-6.17
    Fixed in 6.17.0-1006.7~24.04.1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.