CVE-2023-53716
JSON

Not scored

net: fix skb leak in __skb_tstamp_tx()

Severity
Not scored
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 281072fb2a7294cde7acbf5375b879f40a8001b7 before 82501f1ead557cbee1c2467654ec109a80334d22, from 1f69c086b20e27763af28145981435423f088268 before 779332447108545ef04682ea29af5f85c0202aee, from 602fa8af44fd55a58f9e94eb673e8adad2c6cc46 before 58766252f6b2c0487cda6976a53d2bb03ae28e2a, from 230a5ed7d813fb516de81d23f09d7506753e41e9 before a594382ec6d0cc8cff5a8bc7e61b54e3858fb243, from 43e4197dd5f6b474a8b16f8b6a42cd45cf4f9d1a before e06841a2abf9c82735cee39e88b1d79464088840, from cb52e7f24c1d01a536a847dff0d1d95889cc3b5c before cc18b4685910d5d9de8314bae9c55790701b1811, from 426384dd4980040651536fef5feac4dcc4d7ee4e before f4d928c00254cfc9dd0ee7076f4a59bceec675f4, from 50749f2dd6854a41830996ad302aef2ffaf011d8 before 8a02fb71d7192ff1a9a47c9d937624966c6e09af and 9 moreCVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: corrige fuga de skb en __skb_tstamp_tx() El commit 50749f2dd685 (’tcp/udp: Corrige fugas de memoria de sk y skbs zerocopy con marca de tiempo TX.’) añadió una llamada a skb_orphan_frags_rx() para corregir fugas con skbs zerocopy. Pero terminó añadiendo una fuga propia. Cuando skb_orphan_frags_rx() falla, la función simplemente retorna, provocando una fuga del skb que acaba de clonar. Libéralo antes de retornar. Este error fue descubierto y resuelto utilizando Coverity Static Analysis Security Testing (SAST) por Synopsys, Inc.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53716 changed 2026-05-23CVE Terms of Use
NVDCVE-2023-53716 changed 2026-10-28Public domain