Menu

Star on GitHub · 3.4k

CVE-2024-35844

5.5 · MEDIUM

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 fol…

Published May 17, 2024EPSS 0.24%

Overview

CVE-2024-35844 is a medium-severity vulnerability. It was published on May 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-35844?

CVE-2024-35844 is a medium-severity vulnerability. It was published on May 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-35844?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-35844?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-35844?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-35844 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all
LiveWatch live →