All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-143108: fs/adfs: bound directory entry name length in adfs_fplus_getnext()
@ 2026-12-03  9:19 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-12-03  9:19 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

fs/adfs: bound directory entry name length in adfs_fplus_getnext()

adfs_fplus_getnext() reads the per-entry name length bigdirobnamelen
straight from the on-disk big directory and passes it to
adfs_dir_copyfrom() as the copy length into obj->name[], a fixed
ADFS_MAX_NAME_LEN (260) byte buffer.  adfs_dir_copyfrom() only bounds
the copy against the number of directory buffers, not the size of the
destination, so a crafted image with bigdirobnamelen larger than the
buffer overflows the stack-allocated object_info::name that
adfs_fplus_iterate() passes in.

adfs_object_fixup() may additionally append a four byte ",xyz" filetype
suffix, so the accepted length must also leave room for that.

The old-style directory parser (dir_f.c) already clamps names to
ADFS_F_NAME_LEN, and adfs_fplus_validate_header() validates the header
name fields, but the per-entry name length in the big directory format
was never checked.  Reject over-long entries, using -EIO as elsewhere
in this file for a corrupt big directory.

The Linux kernel CVE team has assigned CVE-2026-143108 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.276 with commit d069df679adbb74d2f61ea7fd55c38a13ef62322
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.227 with commit cec2df4927d21c577e932f12d586004957659ef5
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.120 with commit 86c9518ed8a21ca17c55e25dbd5ade6eb842517b
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.66 with commit d41c3c8f10b456aa3d75ea3107ce13f8b58f4598
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3.7 with commit f8944a8761d291728e318358d13ac6c41078da51
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.4-rc3 with commit ebf5025b0d989f95542fc9da899b7de2fec499f2

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-143108
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	fs/adfs/dir_fplus.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/d069df679adbb74d2f61ea7fd55c38a13ef62322
	https://git.kernel.org/stable/c/cec2df4927d21c577e932f12d586004957659ef5
	https://git.kernel.org/stable/c/86c9518ed8a21ca17c55e25dbd5ade6eb842517b
	https://git.kernel.org/stable/c/d41c3c8f10b456aa3d75ea3107ce13f8b58f4598
	https://git.kernel.org/stable/c/f8944a8761d291728e318358d13ac6c41078da51
	https://git.kernel.org/stable/c/ebf5025b0d989f95542fc9da899b7de2fec499f2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-03  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  9:19 CVE-2026-143108: fs/adfs: bound directory entry name length in adfs_fplus_getnext() Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.