Description
In the Linux kernel, the following vulnerability has been resolved: net: fix skb leak in __skb_tstamp_tx() Commit 50749f2dd685 ("tcp/udp: Fix memleaks of sk and zerocopy skbs with TX timestamp.") added a call to skb_orphan_frags_rx() to fix leaks with zerocopy skbs. But it ended up adding a leak of its own. When skb_orphan_frags_rx() fails, the function just returns, leaking the skb it just cloned. Free it before returning. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
281072fb2a7294cde7acbf5375b879f40a8001b7 to < 82501f1ead557cbee1c2467654ec109a80334d22affected1f69c086b20e27763af28145981435423f088268 to < 779332447108545ef04682ea29af5f85c0202aeeaffected602fa8af44fd55a58f9e94eb673e8adad2c6cc46 to < 58766252f6b2c0487cda6976a53d2bb03ae28e2aaffected230a5ed7d813fb516de81d23f09d7506753e41e9 to < a594382ec6d0cc8cff5a8bc7e61b54e3858fb243affected43e4197dd5f6b474a8b16f8b6a42cd45cf4f9d1a to < e06841a2abf9c82735cee39e88b1d79464088840affectedcb52e7f24c1d01a536a847dff0d1d95889cc3b5c to < cc18b4685910d5d9de8314bae9c55790701b1811affected426384dd4980040651536fef5feac4dcc4d7ee4e to < f4d928c00254cfc9dd0ee7076f4a59bceec675f4affected50749f2dd6854a41830996ad302aef2ffaf011d8 to < 8a02fb71d7192ff1a9a47c9d937624966c6e09afaffected30290f210ba7426ff7592fe2eb4114b1b5bad219affected6.2.15 to < 6.3affected
Linux Linux
Default version status: unaffected
4.14.315 to < 4.14.316affected4.19.283 to < 4.19.284affected5.4.243 to < 5.4.244affected5.10.180 to < 5.10.181affected5.15.111 to < 5.15.114affected6.1.28 to < 6.1.31affected6.3.2 to < 6.3.5affected
References
- https://git.kernel.org/stable/c/82501f1ead557cbee1c2467654ec109a80334d22 ↗
- https://git.kernel.org/stable/c/779332447108545ef04682ea29af5f85c0202aee ↗
- https://git.kernel.org/stable/c/58766252f6b2c0487cda6976a53d2bb03ae28e2a ↗
- https://git.kernel.org/stable/c/a594382ec6d0cc8cff5a8bc7e61b54e3858fb243 ↗
- https://git.kernel.org/stable/c/e06841a2abf9c82735cee39e88b1d79464088840 ↗
- https://git.kernel.org/stable/c/cc18b4685910d5d9de8314bae9c55790701b1811 ↗
- https://git.kernel.org/stable/c/f4d928c00254cfc9dd0ee7076f4a59bceec675f4 ↗
- https://git.kernel.org/stable/c/8a02fb71d7192ff1a9a47c9d937624966c6e09af ↗