CVE-2024-33847
Last modified
CVE-2024-33847 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: don't allow unaligned truncation on released compress inode f2fs image may be corrupted after below testcase: - mkfs.f2fs -O extra_attr,compression -f /dev/vdb - mount /dev/vdb /mnt/f2fs - touch /mnt/f2fs/file - f2fs_io setflags compression /mnt/f2fs/file - dd if=/dev/zero of=/mnt/f2fs/file bs=4k count=4 - f2fs_io release_cblocks /mnt/f2fs/file - truncate -s 8192 /mnt/f2fs/file - umount /mnt/f2fs - fsck.f2fs /dev/vdb [ASSERT] (fsck_chk_inode_blk:1256) --> ino: 0x5 has i_blocks: 0x00000002, but has 0x3 blocks [FSCK] valid_block_count matching with CP [Fail] [0x4, 0x5] [FSCK] other corrupted bugs [Fail] The reason is: partial truncation assume compressed inode has reserved blocks, after partial truncation, valid block count may change w/o .i_blocks and .total_valid_block_count update, result in corruption. This patch only allow cluster size aligned truncation on released compress inode for fixing.. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: don't allow unaligned truncation on released compress inode f2fs image may be corrupted after below testcase: - mkfs.f2fs -O extra_attr,compression -f /dev/vdb - mount /dev/vdb /mnt/f2fs - touch /mnt/f2fs/file - f2fs_io setflags compression /mnt/f2fs/file - dd if=/dev/zero of=/mnt/f2fs/file bs=4k count=4 - f2fs_io release_cblocks /mnt/f2fs/file - truncate -s 8192 /mnt/f2fs/file - umount /mnt/f2fs - fsck.f2fs /dev/vdb [ASSERT] (fsck_chk_inode_blk:1256) --> ino: 0x5 has i_blocks: 0x00000002, but has 0x3 blocks [FSCK] valid_block_count matching with CP [Fail] [0x4, 0x5] [FSCK] other corrupted bugs [Fail] The reason is: partial truncation assume compressed inode has reserved blocks, after partial truncation, valid block count may change w/o .i_blocks and .total_valid_block_count update, result in corruption. This patch only allow cluster size aligned truncation on released compress inode for fixing.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.14, < 5.15.161 |
| Linux | Linux Kernel | >= 5.16, < 6.1.93 |
| Linux | Linux Kernel | >= 6.2, < 6.6.33 |
| Linux | Linux Kernel | >= 6.7, < 6.9.4 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-33847?
How severe is CVE-2024-33847?
How do I fix CVE-2024-33847?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-33831A stored cross-site scripting (XSS) vulnerability in the Adv…7.4
- CVE-2024-33832OneNav v0.9.35-20240318 was discovered to contain a Server-S…6.3
- CVE-2024-33835Tenda AC18 V15.03.05.05 has a stack overflow vulnerability i…9.8
- CVE-2024-33836In the module "JA Marketplace" (jamarketplace) up to version…9.8
- CVE-2024-3384A vulnerability in Palo Alto Networks PAN-OS software enable…7.5
- CVE-2024-33844The 'control' in Parrot ANAFI USA firmware 1.10.4 does not c…7.5
- CVE-2024-33848Uncaught exception in Intel(R) RAID Web Console software all…5.5
- CVE-2024-33849ci solution CI-Out-of-Office Manager through 6.0.0.77 uses a…6.5
- CVE-2024-3385A packet processing mechanism in Palo Alto Networks PAN-OS s…7.5
- CVE-2024-33850Pexip Infinity before 34.1 has Improper Access Control for p…4.3
- CVE-2024-33851phpecc, as used in paragonie/phpecc before 2.0.1, has a bran…4.3
- CVE-2024-33852A SQL Injection vulnerability exists in the Downtime compone…9.1
Are you affected by CVE-2024-33847?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
