{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-42273","id":"CVE-2024-42273","title":"f2fs: assign CURSEG_ALL_DATA_ATGC if blkaddr is valid","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: assign CURSEG_ALL_DATA_ATGC if blkaddr is valid\n\nmkdir /mnt/test/comp\nf2fs_io setflags compression /mnt/test/comp\ndd if=/dev/zero of=/mnt/test/comp/testfile bs=16k count=1\ntruncate --size 13 /mnt/test/comp/testfile\n\nIn the above scenario, we can get a BUG_ON.\n kernel BUG at fs/f2fs/segment.c:3589!\n Call Trace:\n  do_write_pa","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: assign CURSEG_ALL_DATA_ATGC if blkaddr is valid\n\nmkdir /mnt/test/comp\nf2fs_io setflags compression /mnt/test/comp\ndd if=/dev/zero of=/mnt/test/comp/testfile bs=16k count=1\ntruncate --size 13 /mnt/test/comp/testfile\n\nIn the above scenario, we can get a BUG_ON.\n kernel BUG at fs/f2fs/segment.c:3589!\n Call Trace:\n  do_write_page+0x78/0x390 [f2fs]\n  f2fs_outplace_write_data+0x62/0xb0 [f2fs]\n  f2fs_do_write_data_page+0x275/0x740 [f2fs]\n  f2fs_write_single_data_page+0x1dc/0x8f0 [f2fs]\n  f2fs_write_multi_pages+0x1e5/0xae0 [f2fs]\n  f2fs_write_cache_pages+0xab1/0xc60 [f2fs]\n  f2fs_write_data_pages+0x2d8/0x330 [f2fs]\n  do_writepages+0xcf/0x270\n  __writeback_single_inode+0x44/0x350\n  writeback_sb_inodes+0x242/0x530\n  __writeback_inodes_wb+0x54/0xf0\n  wb_writeback+0x192/0x310\n  wb_workfn+0x30d/0x400\n\nThe reason is we gave CURSEG_ALL_DATA_ATGC to COMPR_ADDR where the\npage was set the gcing flag by set_cluster_dirty().","published":"2024-08-17T08:54:27.422Z","updated":"2026-11-17T07:03:34.621893460Z","reserved":"2024-07-30T07:40:12.260Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c972c89457511007dfc933814c06786905e515c","lessThan":"5fd057160ab240dd816ae09b625395d54c297de1","status":"affected","versionType":"git"},{"version":"417b8a91f4e8831cadaf85c3f15c6991c1f54dde","lessThan":"4239571c5db46a42f723b8fa8394039187c34439","status":"affected","versionType":"git"},{"version":"4961acdd65c956e97c1a000c82d91a8c1cdbe44b","lessThan":"0cd106612396656d6f1ca17ef192c6759bb60791","status":"affected","versionType":"git"},{"version":"4961acdd65c956e97c1a000c82d91a8c1cdbe44b","lessThan":"8cb1f4080dd91c6e6b01dbea013a3f42341cb6a1","status":"affected","versionType":"git"},{"version":"7ea0f29d9fd84905051be020c0df7d557e286136","status":"affected","versionType":"git"},{"version":"b8094c0f1aae329b1c60a275a780d6c2c9ff7aa3","status":"affected","versionType":"git"},{"version":"6.1.77","lessThan":"6.1.104","status":"affected","versionType":"semver"},{"version":"6.6.16","lessThan":"6.6.45","status":"affected","versionType":"semver"},{"version":"5.15.149","lessThan":"5.16","status":"affected","versionType":"semver"},{"version":"6.7.4","lessThan":"6.8","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","lessThan":"6.8","status":"unaffected","versionType":"semver"},{"version":"6.1.104","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.45","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.4","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/5fd057160ab240dd816ae09b625395d54c297de1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4239571c5db46a42f723b8fa8394039187c34439","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0cd106612396656d6f1ca17ef192c6759bb60791","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8cb1f4080dd91c6e6b01dbea013a3f42341cb6a1","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42273.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42273","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00231,"epssPercentile":0.14097,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-42273","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42273","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-42273","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-42273","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}