Description
In the Linux kernel, the following vulnerability has been resolved:
mm: fix crashes from deferred split racing folio migration
Even on 6.10-rc6, I've been seeing elusive "Bad page state"s (often on
flags when freeing, yet the flags shown are not bad: PG_locked had been
set and cleared??), and VM_BUG_ON_PAGE(page_ref_count(page) == 0)s from
deferred_split_scan()'s folio_put(), and a variety of other BUG and WARN
symptoms implying double free by deferred split and large folio migration.
6.7 commit 9bcef5973e31 ("mm: memcg: fix split queue list crash when large
folio migration") was right to fix the memcg-dependent locking broken in
85ce2c517ade ("memcontrol: only transfer the memcg data for migration"),
but missed a subtlety of deferred_split_scan(): it moves folios to its own
local list to work on them without split_queue_lock, during which time
folio->_deferred_list is not empty, but even the "right" lock does nothing
to secure the folio and the list it is on.
Fortunately, deferred_split_scan() is careful to use folio_try_get(): so
folio_migrate_mapping() can avoid the race by folio_undo_large_rmappable()
while the old folio's reference count is temporarily frozen to 0 - adding
such a freeze in the !mapping case too (originally, folio lock and
unmapping and no swap cache left an anon folio unreachable, so no freezing
was needed there: but the deferred split queue offers a way to reach it).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 6.7 | 6.9.10 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.9.10-1 | — |
| Debian 13 | linux | 6.9.10-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux | 6.8.0-48.48 | USN-7089-1 |
| Ubuntu 24.04 LTS | linux-aws | 6.8.0-1018.20 | USN-7089-3 |
| Ubuntu 24.04 LTS | linux-azure | 6.8.0-1017.20 | USN-7089-2 |
| Ubuntu 24.04 LTS | linux-gcp +1 | 6.8.0-1017.19 | USN-7095-1, USN-7089-2 |
| Ubuntu 24.04 LTS | linux-gke | 6.8.0-1013.17 | USN-7089-6 |
| Ubuntu 24.04 LTS | linux-gkeop | 6.8.0-1002.4 | USN-7156-1 |
| Ubuntu 24.04 LTS | linux-ibm | 6.8.0-1015.15 | USN-7089-2 |
| Ubuntu 24.04 LTS | linux-lowlatency | 6.8.0-48.48.3 | USN-7089-7 |
| Ubuntu 24.04 LTS | linux-nvidia-lowlatency | 6.8.0-1017.19.1 | USN-7095-1 |
| Ubuntu 24.04 LTS | linux-oem-6.8 | 6.8.0-1016.16 | USN-7089-4 |
| Ubuntu 24.04 LTS | linux-oracle | 6.8.0-1015.16 | USN-7089-3 |
| Ubuntu 24.04 LTS | linux-raspi | 6.8.0-1014.16 | USN-7089-5 |
| Ubuntu 24.04 LTS | linux-riscv | 6.8.0-48.48.1 | — |
| Ubuntu 22.04 LTS | linux-aws-6.8 | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu 22.04 LTS | linux-azure-6.8 | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu 22.04 LTS | linux-gcp-6.8 +1 | 6.8.0-1017.19~22.04.1 | USN-7095-1, USN-7089-1 |
| Ubuntu 22.04 LTS | linux-hwe-6.8 | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.8 | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu 22.04 LTS | linux-oracle-6.8 | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu 22.04 LTS | linux-riscv +31 | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv-6.8 | 6.8.0-48.48.1~22.04.2 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +13 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro Realtime 24.04 LTS | linux-raspi-realtime | 6.8.0-2013.14 | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime | 6.8.1-1011.11 | — |
Advisories 11
- USN-7156-1 linux-gkeop vulnerabilities Ubuntu Security Notices (USN) · Oct 29, 2026
- USN-7095-1 linux-nvidia, linux-nvidia-6.8, linux-nvidia-lowlatency vulnerabilities Ubuntu Security Notices (USN) · Oct 29, 2026
- USN-7090-1 linux-azure-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 29, 2026
- USN-7089-3 linux-aws, linux-aws-6.8, linux-oracle, linux-oracle-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-6 linux-gke vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-7 linux-lowlatency, linux-lowlatency-hwe-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-2 linux-azure, linux-gcp, linux-ibm vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-1 linux, linux-gcp-6.8, linux-hwe-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-5 linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-7089-4 linux-oem-6.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- WID-SEC-2024-1788 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Feb 16, 2026