A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
In the Linux kernel, the following vulnerability has been resolved:
inet: frags: limit the truesize of a reassembly queue
The truesize of fragments in a reassembly queue is only bounded by the per netns ipfrag_high_thresh sysctl, which has no upper limit.
inet_frag_reasm_finish() sums the truesize of all fragments in an int. If this sum reaches 2^32, it wraps, and the final sk_wmem_alloc adjustment of the socket owning the reassembled skb can cancel its own reference, leading to a use-after-free of this socket.
This can be triggered from an unprivileged user/network namespace, raising ipfrag_high_thresh and using padded TUN packets, which keep a large truesize after being trimmed by ip_rcv_core().
Track the sum of the truesize of fragments in each queue, and refuse a fragment that would make it bigger than INT_MAX / 2. Callers kill the queue on this error. This bound is far above the needs of legitimate traffic.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
References
- git.kernel.org /stable/c/3ae20e4697eb969104fe4b1e98a675f0100382b6
- git.kernel.org /stable/c/4bf5dee2b4ad14094360e01a1e0847636efa1519
- git.kernel.org /stable/c/4d820b22f2ed9f7c919e5e623782dc936ba9a50d
- git.kernel.org /stable/c/68515ac2255aa58428b1ae703fd5a20a25fafcf0
- git.kernel.org /stable/c/85b53c900b50a89bd8fea826f55cf2f7cdd3985c
- git.kernel.org /stable/c/86bc36effeec87a95b7c6f3cde686161dde21fd9
- git.kernel.org /stable/c/b3a7ab213d05f3a5e48e98cab291d190fbb1e201
- git.kernel.org /stable/c/b7f84486c44c2ce03dffe5f09a42a38acbaa1551
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning