Description
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix dereference of stale list iterator after loop body
The list iterator variable will be a bogus pointer if no break was hit.
Dereferencing it (cur->page in this case) could load an out-of-bounds/undefined
value making it unsafe to use that in the comparision to determine if the
specific element was found.
Since 'cur->page' *can* be out-ouf-bounds it cannot be guaranteed that
by chance (or intention of an attacker) it matches the value of 'page'
even though the correct element was not found.
This is fixed by using a separate list iterator variable for the loop
and only setting the original variable if a suitable element was found.
Then determing if the element was found is simply checking if the
variable is set.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.12 | 4.19.247 |
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.18.5-1 | — |
| Debian 13 | linux | 5.18.5-1 | — |
| Debian 12 | linux | 5.18.5-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux | 5.15.0-47.51 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1019.23 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1019.24 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1017.23 | — |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1015.18 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1002.4 | — |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1013.15 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1015.20 | — |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1017.21 | — |
| Ubuntu 22.04 LTS | linux-lowlatency | 5.15.0-47.53 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1007.7 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1017.22 | — |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1014.16 | — |
| Ubuntu 22.04 LTS | linux-riscv +32 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-126.142 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1085.92 | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1019.23~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1091.96 | — |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1019.24~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1046.51 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1089.97 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1017.23~20.04.2 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-48.54~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1033.37 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1015.20~20.04.2 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1004.6 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1075.80 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1083.91 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1017.22~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1070.80 | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1018.21~20.04.1 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-192.203 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1140.151 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1085.92~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1150.165 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1091.96~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1135.151 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1089.97~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-126.142~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-ibm-5.4 | 5.4.0-1033.37~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1126.131 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1105.116 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1083.91~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1070.80~18.04.1 | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 7 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-1020.20 | — |
| 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 | 5.4.0-1085.92+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1091.96+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1061.69 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1089.97+fips1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2079.84 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2060.66 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1097.108 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2044.49 | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1140.151~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1150.165~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1135.151~16.04.2 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-192.203~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1105.116~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1150.165~14.04.1 | — |
References
- https://git.kernel.org/stable/c/385edd3ce5b4b1e9d31f474a5e35a39779ec1110
- https://git.kernel.org/stable/c/5e47a7add3dda7f236548c5ec3017776dc2a729f
- https://git.kernel.org/stable/c/51d584704d18e60fa473823654f35611c777b291
- https://git.kernel.org/stable/c/45b2b7d7108ae1e25a5036cab04ab9273e792332
- https://git.kernel.org/stable/c/b26e1c777890e4b938136deb8ec07a29f33862e4
- https://git.kernel.org/stable/c/ed7efc472c00986dcd6903ab6ed165c7fa167674
- https://git.kernel.org/stable/c/2aaf51dd39afb6d01d13f1e6fe20b684733b37d5