CVE-2025-40218

EUVD-2025-201185
In the Linux kernel, the following vulnerability has been resolved:

mm/damon/vaddr: do not repeat pte_offset_map_lock() until success

DAMON's virtual address space operation set implementation (vaddr) calls
pte_offset_map_lock() inside the page table walk callback function.  This
is for reading and writing page table accessed bits.  If
pte_offset_map_lock() fails, it retries by returning the page table walk
callback function with ACTION_AGAIN.

pte_offset_map_lock() can continuously fail if the target is a pmd
migration entry, though.  Hence it could cause an infinite page table walk
if the migration cannot be done until the page table walk is finished. 
This indeed caused a soft lockup when CPU hotplugging and DAMON were
running in parallel.

Avoid the infinite loop by simply not retrying the page table walk.  DAMON
is promising only a best-effort accuracy, so missing access to such pages
is no problem.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
UNKNOWN
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 5%
Debian logo
Debian Releases
Debian Product
Codename
linux
bookworm
6.1.176-1
fixed
bookworm (security)
6.1.177-1
fixed
bullseye
5.10.223-1
fixed
bullseye (security)
5.10.259-1
fixed
forky
7.1.3-1
fixed
sid
7.1.3-1
fixed
trixie
6.12.94-1
fixed
trixie (security)
6.12.95-1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
bpftool6.12
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
bpftool6.12-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel-livepatch-6.12.55-74.119
Amazon Linux 2023
1:1.0-0.amzn2023
fixed
kernel6.12
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-debuginfo-common-aarch64
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-debuginfo-common-x86_64
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-devel
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-headers
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-libbpf
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-libbpf-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-libbpf-devel
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-libbpf-static
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-modules-extra
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-modules-extra-common
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-tools
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-tools-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
kernel6.12-tools-devel
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
perf6.12
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
perf6.12-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
python3-perf6.12
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed
python3-perf6.12-debuginfo
Amazon Linux 2023
1:6.12.55-74.119.amzn2023
fixed