CVE-2024-35844
publishedf2fs: compress: fix reserve_cblocks counting error when out of space
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc75488fb4d82b697f381f855bf5b16779df440aa to < fa3ac8b1a227d9b470b87972494293348b5839ee · c75488fb4d82b697f381f855bf5b16779df440aa to < 889846dfc8ee2cf31148a44bfd2faeb2faadc685 · c75488fb4d82b697f381f855bf5b16779df440aa to < f0bf89e84c3afb79d7a3a9e4bc853ad6a3245c0a · c75488fb4d82b697f381f855bf5b16779df440aa to < 569c198c9e2093fd29cc071856a4e548fda506bc · c75488fb4d82b697f381f855bf5b16779df440aa to < fc0aed88afbf6f606205129a7466eebdf528e3f3 · c75488fb4d82b697f381f855bf5b16779df440aa to < 2f6d721e14b69d6e1251f69fa238b48e8374e25f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.15.153 through 5.15.* (unaffected · semver) · 6.1.83 through 6.1.* (unaffected · semver) · 6.6.23 through 6.6.* (unaffected · semver) · 6.7.11 through 6.7.* (unaffected · semver) · 6.8.2 through 6.8.* (unaffected · semver) · 6.9 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1063 | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1063 | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1063 | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-buildinfo-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-110-lowlatency-64k | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-113-generic-64k | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-113-generic-lpae | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1062 | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1062 | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-gkeop-5.15 | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-gkeop-5.15-cloud-tools-5.15.0-1046 | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-gkeop-5.15-headers-5.15.0-1046 | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-gkeop-5.15-tools-5.15.0-1046 | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-headers-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-headers-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-headers-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-headers-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-headers-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-headers-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-headers-5.15.0-110-lowlatency-64k | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-headers-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-headers-5.15.0-113-generic-64k | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-headers-5.15.0-113-generic-lpae | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-113 | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-113 | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-source-5.15.0 | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-113 | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-common | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-host | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1057 | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1057 | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-image-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-image-5.15.0-113-generic-lpae | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-110-lowlatency-64k | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-113-generic-64k | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-110 | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-110 | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-110 | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-common | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-host | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-modules-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-modules-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-modules-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-modules-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-5.15.0-110-lowlatency-64k | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-modules-5.15.0-113-generic-64k | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-modules-5.15.0-113-generic-lpae | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-modules-extra-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-113-generic | Advisory build | 5.15.0-113.123~20.04.1 | USN-6871-1 |
| Ubuntu | focal | linux-tools-5.15.0-1046-gkeop | Advisory build | 5.15.0-1046.53~20.04.1 | USN-6821-2 |
| Ubuntu | focal | linux-tools-5.15.0-1057-ibm | Advisory build | 5.15.0-1057.60~20.04.1 | USN-6892-1 |
| Ubuntu | focal | linux-tools-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-tools-5.15.0-1062-gcp | Advisory build | 5.15.0-1062.70~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-tools-5.15.0-1063-aws | Advisory build | 5.15.0-1063.69~20.04.1 | USN-6821-3 |
| Ubuntu | focal | linux-tools-5.15.0-110-lowlatency | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
| Ubuntu | focal | linux-tools-5.15.0-110-lowlatency-64k | Advisory build | 5.15.0-110.120~20.04.1 | USN-6820-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix reserve_cblocks counting error when out of space When a file only needs one direct_node, performing the following operations will cause the file to be unrepairable: unisoc # ./f2fs_io compress test.apk unisoc #df -h | grep dm-48 /dev/block/dm-48 112G 112G 1.2M 100% /data unisoc # ./f2fs_io release_cblocks test.apk 924 unisoc # df -h | grep dm-48 /dev/block/dm-48 112G 112G 4.8M 100% /data unisoc # dd if=/dev/random of=file4 bs=1M count=3 3145728 bytes (3.0 M) copied, 0.025 s, 120 M/s unisoc # df -h | grep dm-48 /dev/block/dm-48 112G 112G 1.8M 100% /data unisoc # ./f2fs_io reserve_cblocks test.apk F2FS_IOC_RESERVE_COMPRESS_BLOCKS failed: No space left on device adb reboot unisoc # df -h | grep dm-48 /dev/block/dm-48 112G 112G 11M 100% /data unisoc # ./f2fs_io reserve_cblocks test.apk 0 This is because the file has only one direct_node. After returning to -ENOSPC, reserved_blocks += ret will not be executed. As a result, the reserved_blocks at this time is still 0, which is not the real number of reserved blocks. Therefore, fsck cannot be set to repair the file. After this patch, the fsck flag will be set to fix this problem. unisoc # df -h | grep dm-48 /dev/block/dm-48 112G 112G 1.8M 100% /data unisoc # ./f2fs_io reserve_cblocks test.apk F2FS_IOC_RESERVE_COMPRESS_BLOCKS failed: No space left on device adb reboot then fsck will be executed unisoc # df -h | grep dm-48 /dev/block/dm-48 112G 112G 11M 100% /data unisoc # ./f2fs_io reserve_cblocks test.apk 924
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c75488fb4d82b697f381f855bf5b16779df440aa to < fa3ac8b1a227d9b470b87972494293348b5839ee (affected · git)c75488fb4d82b697f381f855bf5b16779df440aa to < 889846dfc8ee2cf31148a44bfd2faeb2faadc685 (affected · git)c75488fb4d82b697f381f855bf5b16779df440aa to < f0bf89e84c3afb79d7a3a9e4bc853ad6a3245c0a (affected · git)c75488fb4d82b697f381f855bf5b16779df440aa to < 569c198c9e2093fd29cc071856a4e548fda506bc (affected · git)c75488fb4d82b697f381f855bf5b16779df440aa to < fc0aed88afbf6f606205129a7466eebdf528e3f3 (affected · git)c75488fb4d82b697f381f855bf5b16779df440aa to < 2f6d721e14b69d6e1251f69fa238b48e8374e25f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.15.153 through 5.15.* (unaffected · semver)6.1.83 through 6.1.* (unaffected · semver)6.6.23 through 6.6.* (unaffected · semver)6.7.11 through 6.7.* (unaffected · semver)6.8.2 through 6.8.* (unaffected · semver)6.9 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- http://www.openwall.com/lists/oss-security/2024/05/30/1
- http://www.openwall.com/lists/oss-security/2024/05/30/2
- https://git.kernel.org/stable/c/2f6d721e14b69d6e1251f69fa238b48e8374e25f
- https://git.kernel.org/stable/c/569c198c9e2093fd29cc071856a4e548fda506bc
- https://git.kernel.org/stable/c/889846dfc8ee2cf31148a44bfd2faeb2faadc685
- https://git.kernel.org/stable/c/f0bf89e84c3afb79d7a3a9e4bc853ad6a3245c0a
- https://git.kernel.org/stable/c/fa3ac8b1a227d9b470b87972494293348b5839ee
- https://git.kernel.org/stable/c/fc0aed88afbf6f606205129a7466eebdf528e3f3
Provider assertions
3Linux · cna
f2fs: compress: fix reserve_cblocks counting error when out of space
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 579b0757641fcbc4b7426941906e241e00cb3bceef8f0e29f3565db91a5ee228
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record