{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143108","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.349Z","datePublished":"2026-12-03T09:19:24.401Z","dateUpdated":"2026-12-04T03:29:16.939Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:29:16.939Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/adfs: bound directory entry name length in adfs_fplus_getnext()\n\nadfs_fplus_getnext() reads the per-entry name length bigdirobnamelen\nstraight from the on-disk big directory and passes it to\nadfs_dir_copyfrom() as the copy length into obj->name[], a fixed\nADFS_MAX_NAME_LEN (260) byte buffer.  adfs_dir_copyfrom() only bounds\nthe copy against the number of directory buffers, not the size of the\ndestination, so a crafted image with bigdirobnamelen larger than the\nbuffer overflows the stack-allocated object_info::name that\nadfs_fplus_iterate() passes in.\n\nadfs_object_fixup() may additionally append a four byte \",xyz\" filetype\nsuffix, so the accepted length must also leave room for that.\n\nThe old-style directory parser (dir_f.c) already clamps names to\nADFS_F_NAME_LEN, and adfs_fplus_validate_header() validates the header\nname fields, but the per-entry name length in the big directory format\nwas never checked.  Reject over-long entries, using -EIO as elsewhere\nin this file for a corrupt big directory."}],"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 - The malformed field is bigdirobnamelen in an on-disk ADFS F+ directory entry. adfs_fplus_getnext() passes it as the length to adfs_dir_copyfrom(), which memcpy's it into a stack object_info; callers are adfs_fplus_iterate() from adfs_iterate() (getdents) and adfs_dir_lookup_byname() from adfs_lookup(). adfs_fs_type is FS_REQUIRES_DEV only, so the bytes come from a local block device, not a network protocol.\nAC:L - The image author sets bigdirobnamelen, bigdirobnameptr and the name bytes, and recomputes bigdircheckbyte so adfs_fplus_validate_header(), adfs_fplus_validate_tail() and adfs_fplus_checkbyte() accept the directory. Per-entry name length is not validated. Once the image is mounted, getdents or lookup reaches the memcpy deterministically; there is no race and no rare runtime state.\nPR:N - adfs_fs_type sets only FS_REQUIRES_DEV, with no FS_USERNS_MOUNT, so the attacker cannot mount this image from a user namespace and needs no account. Mounting requires init-namespace CAP_SYS_ADMIN and is the victim action scored as UI:R; that victim's lookup or getdents is what calls adfs_fplus_getnext().\nUI:R - adfs_fill_super() builds the root inode from the disc record and never calls adfs_fplus_getnext(). The overflow runs only after a victim or automounter mounts the crafted image and lookup or getdents walks a directory (adfs_lookup or adfs_iterate). The attacker cannot perform that mount alone.\nS:U - The memcpy corrupts the kernel stack of the task inside adfs_lookup() or adfs_iterate(), and the getdents copy-out stays in that same kernel. No guest-to-host, IOMMU, or sandbox boundary is crossed.\nC:H - adfs_dir_copyfrom() accepts the copy once a second directory buffer exists, then its second memcpy uses the leftover bigdirobnamelen with no cap at b_size, so a name_len below PATH_MAX reads past that block into adjacent memory. adfs_object_fixup() rewrites '/' to '.' across that length, verify_dirent_name() then passes, and filldir() copies the range to userspace on getdents.\nI:H - That memcpy writes attacker-chosen directory bytes past object_info::name[ADFS_MAX_NAME_LEN] (260). name[] is the last field of the stack object in adfs_fplus_iterate() and adfs_lookup(), so the copy continues over the saved return address and the caller frame. That is a controlled stack smash usable for kernel code execution.\nA:H - A few hundred bytes of bigdirobnamelen overwrite the stack canary and panic on return from adfs_fplus_iterate() or adfs_lookup() (\"Kernel stack is corrupted\"). A length up toward the 4MB bigdirsize limit runs off the kernel stack into the guard page and oopses. Either trigger repeats on every getdents or lookup."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/adfs/dir_fplus.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"d069df679adbb74d2f61ea7fd55c38a13ef62322","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"cec2df4927d21c577e932f12d586004957659ef5","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"86c9518ed8a21ca17c55e25dbd5ade6eb842517b","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"d41c3c8f10b456aa3d75ea3107ce13f8b58f4598","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"f8944a8761d291728e318358d13ac6c41078da51","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"ebf5025b0d989f95542fc9da899b7de2fec499f2","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/adfs/dir_fplus.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","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":"2.6.12","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc3"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/d069df679adbb74d2f61ea7fd55c38a13ef62322"},{"url":"https://git.kernel.org/stable/c/cec2df4927d21c577e932f12d586004957659ef5"},{"url":"https://git.kernel.org/stable/c/86c9518ed8a21ca17c55e25dbd5ade6eb842517b"},{"url":"https://git.kernel.org/stable/c/d41c3c8f10b456aa3d75ea3107ce13f8b58f4598"},{"url":"https://git.kernel.org/stable/c/f8944a8761d291728e318358d13ac6c41078da51"},{"url":"https://git.kernel.org/stable/c/ebf5025b0d989f95542fc9da899b7de2fec499f2"}],"title":"fs/adfs: bound directory entry name length in adfs_fplus_getnext()","x_generator":{"engine":"bippy-1.2.0"}}}}