CVE-2026-31589

EUVD-2026-25482
In the Linux kernel, the following vulnerability has been resolved:

mm: call ->free_folio() directly in folio_unmap_invalidate()

We can only call filemap_free_folio() if we have a reference to (or hold a
lock on) the mapping.  Otherwise, we've already removed the folio from the
mapping so it no longer pins the mapping and the mapping can be removed,
causing a use-after-free when accessing mapping->a_ops.

Follow the same pattern as __remove_mapping() and load the free_folio
function pointer before dropping the lock on the mapping.  That lets us
make filemap_free_folio() static as this was the only caller outside
filemap.c.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 19%
Affected Products (NVD)
VendorProductVersion
linuxlinux_kernel
6.14 ≤
𝑥
< 6.19.14
linuxlinux_kernel
7.0 ≤
𝑥
< 7.0.1
𝑥
= Vulnerable software versions
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
bpftool6.18
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
bpftool6.18-debuginfo
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel-livepatch-6.18.30-61.116
Amazon Linux 2023
1:1.0-0.amzn2023
fixed
kernel6.18
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-debuginfo
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-debuginfo-common-aarch64
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-debuginfo-common-x86_64
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-devel
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-headers
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-modules-extra
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-modules-extra-common
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-tools
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-tools-debuginfo
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
kernel6.18-tools-devel
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
perf6.18
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
perf6.18-debuginfo
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
python3-perf6.18
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
python3-perf6.18-debuginfo
Amazon Linux 2023
1:6.18.30-61.116.amzn2023
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
kernel
Azure Linux 3.0
0:6.6.134.1-2.azl3
fixed