Vulnerability record
fs/splice: clamp an over-reported write_iter result
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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources