Skip to main content
Network Thinking Solutions Logo

CVE-2024-35844

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 # .

All CVEs
CVE-2024-35844Published 5/17/2024

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 # .

Vendor advisory
CVSS5.5Medium

Overview

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

Published
5/17/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.8, < 5.15.153

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.83

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.23

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.7.11

Verify advisory

Source
linux kernel
linux
≥ 6.8, < 6.8.2

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < fa3ac8b1a227d9b470b87972494293348b5839ee

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < 889846dfc8ee2cf31148a44bfd2faeb2faadc685

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < f0bf89e84c3afb79d7a3a9e4bc853ad6a3245c0a

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < 569c198c9e2093fd29cc071856a4e548fda506bc

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < fc0aed88afbf6f606205129a7466eebdf528e3f3

Verify advisory

Source
Linux
Linux
≥ c75488fb4d82b697f381f855bf5b16779df440aa, < 2f6d721e14b69d6e1251f69fa238b48e8374e25f

Verify advisory

Source
Linux
Linux
5.8

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.