{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99574","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.422Z","datePublished":"2026-11-20T05:49:07.960Z","dateUpdated":"2026-11-22T11:09:00.925Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:00.925Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: bound the SIT/NAT bitmaps by the checkpoint pack\n\nsit_ver_bitmap_bytesize and nat_ver_bitmap_bytesize are used as memcpy\nlengths into and out of sbi->ckpt, which is sized from cp_payload alone,\nand nothing compares either length against that allocation.\n\nsanity_check_ckpt() has checked these two fields since c77ec61ca0a4, which\nadded them after a crafted image overran build_sit_info(). That check ties\neach length to a segment count; it never compares either against the\nallocation, which is the half this adds.\n\nMounting over-reads in build_sit_info() and build_node_manager(), and the\nfirst checkpoint writes the same lengths back through the same pointers,\nso the over-read's contents reach the on-disk checkpoint. An unmount is\nenough; the filesystem does not have to be used.\n\nBound both ends the way __bitmap_ptr() lays them out. The three branches\ndiffer, so a single sum of the two lengths would still admit a small\noverflow when cp_payload is non-zero."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - sit_ver_bitmap_bytesize and nat_ver_bitmap_bytesize are taken from the on-disk checkpoint in f2fs_get_valid_checkpoint() and passed to kmemdup() in build_sit_info() and init_node_manager(); those bytes are image metadata, not a field of any network protocol message.\nAC:L - The attacker picks segment_count_sit and segment_count_nat so f2fs_sanity_check_ckpt()'s segment-count test accepts the lengths, while cp_payload leaves the sbi->ckpt kvzalloc shorter than __bitmap_ptr() plus that length; the mount-time kmemdup then runs with no race or hardware fault.\nPR:N - The copy runs in f2fs_fill_super() as soon as the image is mounted. f2fs_fs_type has no FS_USERNS_MOUNT, so mount_capable() requires init-namespace CAP_SYS_ADMIN, but that capability belongs to the mounting victim; the image supplier needs none.\nUI:R - build_sit_info() is reached only from f2fs_fill_super() through f2fs_get_tree() and get_tree_bdev(), which run when someone mounts this image. A well-formed, already-mounted f2fs never reloads these bitmap lengths.\nS:U - The kmemdup past sbi->ckpt and the memcpy in get_sit_bitmap() and get_nat_bitmap() corrupt host kernel heap only. Nothing here crosses a guest-to-host or IOMMU boundary.\nC:H - build_sit_info() and init_node_manager() kmemdup() sit_ver_bitmap_bytesize and nat_ver_bitmap_bytesize bytes from __bitmap_ptr() inside an sbi->ckpt of (1+cp_payload) blocks. The excess is an attacker-sized read of adjacent kernel memory, not a few-byte leak.\nI:H - do_checkpoint() calls get_sit_bitmap() and get_nat_bitmap(), which memcpy those same lengths back through __bitmap_ptr(). The tail past the kvzalloc of sbi->ckpt is a heap out-of-bounds write, reached from kill_f2fs_super() when CP_UMOUNT_FLAG is clear.\nA:H - The memcpy in get_sit_bitmap() and get_nat_bitmap() writes past sbi->ckpt into adjacent heap, and a sit/nat length that runs off the direct map faults inside the mount-time kmemdup. Either way the kernel oopses."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/super.c"],"versions":[{"version":"39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5","lessThan":"ddb9848fd6b2f4e9ed5ef78b20c9720c65a29df5","status":"affected","versionType":"git"},{"version":"39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5","lessThan":"9b08fc2d092171af388f83030d54488b87453155","status":"affected","versionType":"git"},{"version":"39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5","lessThan":"7f88cd38394a16c326073c8813e7f1f1445bf3ba","status":"affected","versionType":"git"},{"version":"39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5","lessThan":"080833a32fd5dc10b3acf2fa9af9b3213e6cb617","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/super.c"],"versions":[{"version":"3.8","status":"affected"},{"version":"0","lessThan":"3.8","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ddb9848fd6b2f4e9ed5ef78b20c9720c65a29df5"},{"url":"https://git.kernel.org/stable/c/9b08fc2d092171af388f83030d54488b87453155"},{"url":"https://git.kernel.org/stable/c/7f88cd38394a16c326073c8813e7f1f1445bf3ba"},{"url":"https://git.kernel.org/stable/c/080833a32fd5dc10b3acf2fa9af9b3213e6cb617"}],"title":"f2fs: bound the SIT/NAT bitmaps by the checkpoint pack","x_generator":{"engine":"bippy-1.2.0"}}}}