Description
In the Linux kernel, the following vulnerability has been resolved:
usb: f_fs: Fix use-after-free for epfile
Consider a case where ffs_func_eps_disable is called from
ffs_func_disable as part of composition switch and at the
same time ffs_epfile_release get called from userspace.
ffs_epfile_release will free up the read buffer and call
ffs_data_closed which in turn destroys ffs->epfiles and
mark it as NULL. While this was happening the driver has
already initialized the local epfile in ffs_func_eps_disable
which is now freed and waiting to acquire the spinlock. Once
spinlock is acquired the driver proceeds with the stale value
of epfile and tries to free the already freed read buffer
causing use-after-free.
Following is the illustration of the race:
CPU1 CPU2
ffs_func_eps_disable
epfiles (local copy)
ffs_epfile_release
ffs_data_closed
if (last file closed)
ffs_data_reset
ffs_data_clear
ffs_epfiles_destroy
spin_lock
dereference epfiles
Fix this races by taking epfiles local copy & assigning it under
spinlock and if epfiles(local) is null then update it in ffs->epfiles
then finally destroy it.
Extending the scope further from the race, protecting the ep related
structures, and concurrent accesses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.8.10 – < 4.9, 4.9 | 4.9 |
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.16.10-1 | — |
| Debian 13 | linux | 5.16.10-1 | — |
| Debian 12 | linux | 5.16.10-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +25 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-110.124 | — |
| Ubuntu 20.04 LTS | linux-aws +1 | 5.4.0-1073.78 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1078.81 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1040.44 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1040.41 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1021.23 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1008.11~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1004.6 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1063.66 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1071.77 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1060.68 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-177.186 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1128.137 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1075.80~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1138.151 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1078.81~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1122.136 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1073.78~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-110.124~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-ibm-5.4 | 5.4.0-1021.23~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1114.117 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1093.102 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1071.77~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1060.68~18.04.1 | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips +1 | 5.4.0-1073.78+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1078.81+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1049.55 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2067.70 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2049.53 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1085.94 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2032.35 | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1128.137~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1138.151~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1122.136~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-177.186~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1093.102~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1138.151~14.04.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +5 | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.63.1 | SUSE-SU-2024:2947-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.73.1.150500.6.33.8 | SUSE-SU-2024:2939-1 |
| SLES 15 SP5 | kernel-docs | 5.14.21-150500.55.73.2 | SUSE-SU-2024:2939-1 |
| SLES 15 SP4 | kernel-64kb +6 | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SLES 15 SP3 | kernel-64kb +6 | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SLES 15 SP3 | kernel-docs | 5.3.18-150300.59.170.2 | SUSE-SU-2024:2948-1 |
| SLES 12 SP5 | kernel-azure +2 | 4.12.14-16.197.1 | SUSE-SU-2024:3252-1 |
| SLES 12 SP5 | kernel-docs +1 | 4.12.14-122.228.2 | SUSE-SU-2024:3251-1 |
| SLES 12 SP5 | kernel-syms +2 | 4.12.14-122.228.1 | SUSE-SU-2024:3251-1 |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SLES for SAP 15 SP4 | kernel-docs +4 | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SLES for SAP 15 SP3 | kernel-docs | 5.3.18-150300.59.170.2 | SUSE-SU-2024:2948-1 |
| SLES for SAP 15 SP3 | kernel-syms +4 | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLES for SAP 12 SP5 | kernel-azure +2 | 4.12.14-16.197.1 | SUSE-SU-2024:3252-1 |
| SLES for SAP 12 SP5 | kernel-syms +2 | 4.12.14-122.228.1 | SUSE-SU-2024:3251-1 |
| SLE Real Time 12 SP5 | kernel-rt +3 | 4.12.14-10.200.1 | SUSE-SU-2024:3189-1 |
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.73.1.150500.6.33.8 | SUSE-SU-2024:2939-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.64.1 | SUSE-SU-2024:2894-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.88.1 | SUSE-SU-2024:2902-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.88.1 | SUSE-SU-2024:2902-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.178.1 | SUSE-SU-2024:2893-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SLE Micro 5.1 | kernel-rt +1 | 5.3.18-150300.178.1 | SUSE-SU-2024:2893-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_17 +1 | 1-150500.11.3.1 | SUSE-SU-2024:2939-1, SUSE-SU-2024:2894-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_29 | 1-150400.9.3.1 | SUSE-SU-2024:2929-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_47 | 1-150300.7.3.1 | SUSE-SU-2024:2948-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.228.1 | SUSE-SU-2024:3251-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_60 | 1-8.3.1 | SUSE-SU-2024:3251-1 |
| SLE HPC 15 SP4 | kernel-64kb +5 | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SLE HPC 15 SP3 | kernel-64kb +5 | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SLE HPC 15 SP3 | kernel-docs | 5.3.18-150300.59.170.2 | SUSE-SU-2024:2948-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +3 | 5.14.21-150500.13.64.1 | SUSE-SU-2024:2894-1 |
| SUSE Manager Server 4.3 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SUSE Manager Server 4.3 | kernel-syms +3 | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SUSE Manager Proxy 4.3 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| SUSE Manager Proxy 4.3 | kernel-syms +2 | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +5 | 5.3.18-150300.59.170.1 | SUSE-SU-2024:2948-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.170.1.150300.18.100.1 | SUSE-SU-2024:2948-1 |
| SUSE Enterprise Storage 7.1 | kernel-docs | 5.3.18-150300.59.170.2 | SUSE-SU-2024:2948-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | dtb-aarch64 +9 | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.63.1 | SUSE-SU-2024:2947-1 |
| openSUSE Leap 15.5 | kernel-default-base | 5.14.21-150500.55.73.1.150500.6.33.8 | SUSE-SU-2024:2939-1 |
| openSUSE Leap 15.5 | kernel-docs | 5.14.21-150500.55.73.2 | SUSE-SU-2024:2939-1 |
| openSUSE Leap 15.5 | kernel-rt +3 | 5.14.21-150500.13.64.1 | SUSE-SU-2024:2894-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.5 | kernel-default | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| openSUSE Leap Micro 5.5 | kernel-default-base | 5.14.21-150500.55.73.1.150500.6.33.8 | SUSE-SU-2024:2939-1 |
| openSUSE Leap Micro 5.5 | kernel-rt | 5.14.21-150500.13.64.1 | SUSE-SU-2024:2894-1 |
Advisories 11
- WID-SEC-2024-1625 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Jul 27, 2026
- SUSE-SU-2024:2947-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3189-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2939-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2893-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3252-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2902-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2929-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3251-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2894-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2024:2948-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
References
- https://git.kernel.org/stable/c/32048f4be071f9a6966744243f1786f45bb22dc2
- https://git.kernel.org/stable/c/cfe5f6fd335d882bcc829a1c8a7d462a455c626e
- https://git.kernel.org/stable/c/c9fc422c9a43e3d58d246334a71f3390401781dc
- https://git.kernel.org/stable/c/0042178a69eb77a979e36a50dcce9794a3140ef8
- https://git.kernel.org/stable/c/72a8aee863af099d4434314c4536d6c9a61dcf3c
- https://git.kernel.org/stable/c/3e078b18753669615301d946297bafd69294ad2c
- https://git.kernel.org/stable/c/ebe2b1add1055b903e2acd86b290a85297edc0b3