{"id":"CVE-2023-52444","published":"2024-02-22T16:21:37Z","modified":"2026-10-15T00:16:56Z","title":"f2fs: fix to avoid dirent corruption","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to avoid dirent corruption\n\nAs Al reported in link[1]:\n\nf2fs_rename()\n...\n\tif (old_dir != new_dir && !whiteout)\n\t\tf2fs_set_link(old_inode, old_dir_entry,\n\t\t\t\t\told_dir_page, new_dir);\n\telse\n\t\tf2fs_put_page(old_dir_page, 0);\n\nYou want correct inumber in the \"..\" link.  And cross-directory\nrename does move the source to new parent, even if you'd been asked\nto leave a whiteout in the old place.\n\n[1] https://lore.kernel.org/all/20231017055040.GN800259@ZenIV/\n\nWith below testcase, it may cause dirent corruption, due to it missed\nto call f2fs_set_link() to update \"..\" link to new directory.\n- mkdir -p dir/foo\n- renameat2 -w dir/foo bar\n\n[ASSERT] (__chk_dots_dentries:1421)  --> Bad inode number[0x4] for '..', parent parent ino is [0x3]\n[FSCK] other corrupted bugs                           [Fail]","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00245,"percentile":0.16022,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/02160112e6d45c2610b049df6eb693d7a2e57b46","tags":[]},{"url":"https://git.kernel.org/stable/c/5624a3c1b1ebc8991318e1cce2aa719542991024","tags":[]},{"url":"https://git.kernel.org/stable/c/6f866885e147d33efc497f1095f35b2ee5ec7310","tags":[]},{"url":"https://git.kernel.org/stable/c/f100ba617d8be6c98a68f3744ef7617082975b77","tags":[]},{"url":"https://git.kernel.org/stable/c/f0145860c20be6bae6785c7a2249577674702ac7","tags":[]},{"url":"https://git.kernel.org/stable/c/d3c0b49aaa12a61d560528f5d605029ab57f0728","tags":[]},{"url":"https://git.kernel.org/stable/c/2fb4867f4405aea8c0519d7d188207f232a57862","tags":[]},{"url":"https://git.kernel.org/stable/c/53edb549565f55ccd0bdf43be3d66ce4c2d48b28","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":3.2},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 02160112e6d45c2610b049df6eb693d7a2e57b46",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 5624a3c1b1ebc8991318e1cce2aa719542991024",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 6f866885e147d33efc497f1095f35b2ee5ec7310",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < f100ba617d8be6c98a68f3744ef7617082975b77",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < f0145860c20be6bae6785c7a2249577674702ac7",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < d3c0b49aaa12a61d560528f5d605029ab57f0728",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 2fb4867f4405aea8c0519d7d188207f232a57862",">= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 53edb549565f55ccd0bdf43be3d66ce4c2d48b28"]},{"vendor":"Linux","product":"Linux","versions":["4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-26T17:55:52.107706Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-57069","exploited":false,"provenance":"source"}}