{"id":"CVE-2023-52444","title":"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…","summary":"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…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-119"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.2.0, < 4.19.306","linux_kernel >= 4.20, < 5.4.268","linux_kernel >= 5.5.0, < 5.10.209","linux_kernel >= 5.11.0, < 5.15.148","linux_kernel >= 5.16.0, < 6.1.75","linux_kernel >= 6.2.0, < 6.6.14","linux_kernel >= 6.7.0, < 6.7.2"],"patched":["linux_kernel 6.7.2"],"published":"2024-02-22","updated":"2026-08-04","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-52444","references":[{"url":"https://git.kernel.org/stable/c/02160112e6d45c2610b049df6eb693d7a2e57b46","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2fb4867f4405aea8c0519d7d188207f232a57862","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/53edb549565f55ccd0bdf43be3d66ce4c2d48b28","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5624a3c1b1ebc8991318e1cce2aa719542991024","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/6f866885e147d33efc497f1095f35b2ee5ec7310","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d3c0b49aaa12a61d560528f5d605029ab57f0728","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f0145860c20be6bae6785c7a2249577674702ac7","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f100ba617d8be6c98a68f3744ef7617082975b77","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/02160112e6d45c2610b049df6eb693d7a2e57b46","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/2fb4867f4405aea8c0519d7d188207f232a57862","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/53edb549565f55ccd0bdf43be3d66ce4c2d48b28","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/5624a3c1b1ebc8991318e1cce2aa719542991024","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/6f866885e147d33efc497f1095f35b2ee5ec7310","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/d3c0b49aaa12a61d560528f5d605029ab57f0728","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/f0145860c20be6bae6785c7a2249577674702ac7","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/f100ba617d8be6c98a68f3744ef7617082975b77","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd"],"epss":0.00245,"epssPercentile":0.15995,"ingestedAt":"2026-08-04T10:39:37.704Z","slug":"CVE-2023-52444","body":"## Overview\n\nIn 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]\n\n## Affected\n\n- `linux_kernel >= 4.2.0, < 4.19.306`\n- `linux_kernel >= 4.20, < 5.4.268`\n- `linux_kernel >= 5.5.0, < 5.10.209`\n- `linux_kernel >= 5.11.0, < 5.15.148`\n- `linux_kernel >= 5.16.0, < 6.1.75`\n- `linux_kernel >= 6.2.0, < 6.6.14`\n- `linux_kernel >= 6.7.0, < 6.7.2`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 6.7.2`","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}