All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-143106: fs/splice: clamp an over-reported write_iter result
@ 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/splice: clamp an over-reported write_iter result

iter_file_splice_write() builds a bvec iterator of at most
sd.total_len - left bytes and passes it to ->write_iter().  It then
subtracts the returned length from sd.total_len and walks the pipe
buffers by that length.  A ->write_iter() implementation that reports
more bytes than the iterator held makes sd.total_len underflow and the
dismissal loop advance pipe->tail past pipe->head, releasing a zeroed
pipe buffer:

  Splice Exceeded! ret=7 tot=1 left=0
  Oops: general protection fault
  RIP: 0010:iter_file_splice_write+0xb6f/0x1170

Commit a3de58b12ce0 ("netfs: Fix unbuffered write error handling")
added the warning for this condition but only reports it.  Clamp the
return value to the size of the iterator that was actually handed to
->write_iter(), so the pipe accounting stays consistent even when a
producer violates the iterator contract.

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


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

	Issue introduced in 3.16 with commit 8d0207652cbe27d1f962050737848e5ad4671958 and fixed in 6.12.120 with commit 4e410d2bd373d13d11d1827156f7b8ba9a246953
	Issue introduced in 3.16 with commit 8d0207652cbe27d1f962050737848e5ad4671958 and fixed in 6.18.66 with commit e8a2c6fe88a825fef0ea6ac501309de90adef02f
	Issue introduced in 3.16 with commit 8d0207652cbe27d1f962050737848e5ad4671958 and fixed in 7.3.7 with commit 730fb5d6fcd6062c3264cc782e5efd05688a91e6
	Issue introduced in 3.16 with commit 8d0207652cbe27d1f962050737848e5ad4671958 and fixed in 7.4-rc3 with commit 2d956723e82cddae8ff8e9da99a666217b02065f

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-143106
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/splice.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/4e410d2bd373d13d11d1827156f7b8ba9a246953
	https://git.kernel.org/stable/c/e8a2c6fe88a825fef0ea6ac501309de90adef02f
	https://git.kernel.org/stable/c/730fb5d6fcd6062c3264cc782e5efd05688a91e6
	https://git.kernel.org/stable/c/2d956723e82cddae8ff8e9da99a666217b02065f

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

only message in thread, other threads:[~2026-12-03  9:29 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-143106: fs/splice: clamp an over-reported write_iter result 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.