Description
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix pcluster use-after-free on UP platforms
During stress testing with CONFIG_SMP disabled, KASAN reports as below:
==================================================================
BUG: KASAN: use-after-free in __mutex_lock+0xe5/0xc30
Read of size 8 at addr ffff8881094223f8 by task stress/7789
CPU: 0 PID: 7789 Comm: stress Not tainted 6.0.0-rc1-00002-g0d53d2e882f9 #3
Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
Call Trace:
<TASK>
..
__mutex_lock+0xe5/0xc30
..
z_erofs_do_read_page+0x8ce/0x1560
..
z_erofs_readahead+0x31c/0x580
..
Freed by task 7787
kasan_save_stack+0x1e/0x40
kasan_set_track+0x20/0x30
kasan_set_free_info+0x20/0x40
__kasan_slab_free+0x10c/0x190
kmem_cache_free+0xed/0x380
rcu_core+0x3d5/0xc90
__do_softirq+0x12d/0x389
Last potentially related work creation:
kasan_save_stack+0x1e/0x40
__kasan_record_aux_stack+0x97/0xb0
call_rcu+0x3d/0x3f0
erofs_shrink_workstation+0x11f/0x210
erofs_shrink_scan+0xdc/0x170
shrink_slab.constprop.0+0x296/0x530
drop_slab+0x1c/0x70
drop_caches_sysctl_handler+0x70/0x80
proc_sys_call_handler+0x20a/0x2f0
vfs_write+0x555/0x6c0
ksys_write+0xbe/0x160
do_syscall_64+0x3b/0x90
The root cause is that erofs_workgroup_unfreeze() doesn't reset to
orig_val thus it causes a race that the pcluster reuses unexpectedly
before freeing.
Since UP platforms are quite rare now, such path becomes unnecessary.
Let's drop such specific-designed path directly instead.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.19.26 – < 4.20, 4.20.13 – < 4.21, 5.0 | 4.20 |
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 | 5.19.11-1 | — |
| Debian 13 | linux | 5.19.11-1 | — |
| Debian 12 | linux | 5.19.11-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-57.63 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1027.31 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1030.37 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1030.37.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1026.33 | — |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1024.29 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1012.16 | — |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1022.25 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1023.28 | — |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1025.30 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1015.15 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1026.32 | — |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1022.24 | — |
| Ubuntu 22.04 LTS | linux-riscv +22 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-192.212 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1130.140 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-aws-5.15 +1 | 5.15.0-1027.31~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1135.142 | USN-6951-2 |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1030.37~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1090.97 | USN-6951-4 |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1134.143 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1027.34~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1097.101 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-gkeop-5.15 | 5.15.0-1012.16~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 | 5.15.0-57.63~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1077.82 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1023.28~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1042.43 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1118.125 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-lowlatency-hwe-5.15 | 5.15.0-58.64~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1129.138 | USN-6953-1 |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1027.33~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1114.126 | USN-6951-1 |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1049.53 | USN-6951-1 |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1029.32 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1130.140+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1135.142+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1104.114 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1134.143+fips1 | — |
| Ubuntu Pro 18.04 LTS | linux-aws-5.4 | 5.4.0-1130.140~18.04.1 | USN-6951-1 |
| Ubuntu Pro 18.04 LTS | linux-azure-5.4 | 5.4.0-1135.142~18.04.1 | USN-6951-3 |
| Ubuntu Pro 18.04 LTS | linux-gcp-5.4 | 5.4.0-1134.143~18.04.1 | USN-6951-1 |
| Ubuntu Pro 18.04 LTS | linux-hwe-5.4 | 5.4.0-192.212~18.04.1 | USN-6951-1 |
| Ubuntu Pro 18.04 LTS | linux-ibm-5.4 | 5.4.0-1077.82~18.04.1 | USN-6951-1 |
| Ubuntu Pro 18.04 LTS | linux-oracle-5.4 | 5.4.0-1129.138~18.04.1 | USN-6953-1 |
| Ubuntu Pro 18.04 LTS | linux-raspi-5.4 | 5.4.0-1114.126~18.04.1 | USN-6979-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.88.1 | SUSE-SU-2024:4364-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.75.1 | SUSE-SU-2024:4376-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.88.1.150500.6.39.4 | SUSE-SU-2024:4364-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.88.1 | SUSE-SU-2024:4364-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.88.1.150500.6.39.4 | SUSE-SU-2024:4364-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.79.1 | SUSE-SU-2024:4315-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.88.1 | SUSE-SU-2024:4364-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5-RT_Update_23 | 1-150500.11.3.1 | SUSE-SU-2024:4315-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_21 | 1-150500.11.5.1 | SUSE-SU-2024:4364-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +3 | 5.14.21-150500.13.79.1 | SUSE-SU-2024:4315-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.75.1 | SUSE-SU-2024:4376-1 |
| openSUSE Leap 15.5 | kernel-rt +3 | 5.14.21-150500.13.79.1 | SUSE-SU-2024:4315-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.5 | kernel-rt | 5.14.21-150500.13.79.1 | SUSE-SU-2024:4315-1 |
Advisories 10
- USN-6951-1 linux, linux-aws, linux-aws-5.4, linux-gcp, linux-gcp-5.4, linux-gkeop, linux-hwe-5.4, linux-ibm, linux-ibm-5.4, linux-iot, linux-kvm, linux-raspi, linux-xilinx-zynqmp vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6979-1 linux-raspi-5.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6951-3 linux-azure-5.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6953-1 linux-oracle, linux-oracle-5.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6951-4 linux-bluefield vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6951-2 linux-azure vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- WID-SEC-2024-1025 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 5, 2026
- SUSE-SU-2024:4376-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4364-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4315-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026