CVE-2024-33847 json
f2fs: compress: don't allow unaligned truncation on released compress inode
published 2024-06-24 2 y ago modified 2026-10-15 25 d ago also EUVD-2024-34581
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.15.161, 6.1.93, 6.6.33, 6.9.4, 6.10
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem V1.1.1
- linux Debian 12 6.1.94-1
- linux Debian 14, Debian 13 6.9.7-1
debian advisories DEBIAN-CVE-2024-33847
- linux Ubuntu 22.04 LTS 5.15.0-121.131
- linux Ubuntu 24.04 LTS 6.8.0-44.44
- linux-aws Ubuntu 22.04 LTS 5.15.0-1069.75
- linux-aws Ubuntu 24.04 LTS 6.8.0-1015.16
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1068.76
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1014.16
- linux-gke Ubuntu 22.04 LTS 5.15.0-1066.72
- linux-gke Ubuntu 24.04 LTS 6.8.0-1010.13
ubuntu advisories UBUNTU-CVE-2024-33847
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/b8962cf98595d1ec62f40f23667de830567ec8bc commit
- git.kernel.org/stable/c/8acae047215024d1ac499b3c8337ef1b952f160b commit
- git.kernel.org/stable/c/3ccf5210dc941a7aa0180596ac021568be4d35ec commit
- git.kernel.org/stable/c/9f9341064a9b5246a32a7fe56b9f80c6f7f3c62d commit
- git.kernel.org/stable/c/5268241b41b1c5d0acca75e9b97d4fd719251c8c commit
- git.kernel.org/stable/c/29ed2b5dd521ce7c5d8466cd70bf0cc9d07afeee commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-33847 updated cvss 5.5
kernel: f2fs: compress: don't allow unaligned truncation on released compress inode
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-102-01 updated cvss 5.5
Siemens SIMATIC S7-1500 TM MFP
-
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystemaffected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/b8962cf98595d1ec62f40f23667de830567ec8bc
patch
-
git.kernel.org
/stable/c/8acae047215024d1ac499b3c8337ef1b952f160b
patch
-
git.kernel.org
/stable/c/3ccf5210dc941a7aa0180596ac021568be4d35ec
patch
-
git.kernel.org
/stable/c/9f9341064a9b5246a32a7fe56b9f80c6f7f3c62d
patch
-
git.kernel.org
/stable/c/5268241b41b1c5d0acca75e9b97d4fd719251c8c
patch
-
git.kernel.org
/stable/c/29ed2b5dd521ce7c5d8466cd70bf0cc9d07afeee
patch
- cert-portal.siemens.com /productcert/html/ssa-265688.html
Sources
- CVE List CVE-2024-33847
- NVD CVE-2024-33847
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.