# CVE-2024-36954: tipc: fix a possible memleak in tipc_buf_append

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-30T15:35:48.665Z
- Modified: 2026-06-17T07:37:26.603Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tipc: fix a possible memleak in tipc_buf_append

__skb_linearize() doesn't free the skb when it fails, so move
'*buf = NULL' after __skb_linearize(), so that the skb can be
freed on the err path.

(As written by CVE List.)

## Affected

- Linux Linux: from 4b1761898861117c97066aea6c58f68a7787f0bf before 01cd1b7b685751ee422d00d050292a3d277652d6; from 64d17ec9f1ded042c4b188d15734f33486ed9966 before 2f87fd9476cf9725d774e6dcb7d17859c6a6d1ae; from 6da24cfc83ba4f97ea44fc7ae9999a006101755c before adbce6d20da6254c86425a8d4359b221b5ccbccd; from b7df21cf1b79ab7026f545e7bf837bd5750ac026 before 42c8471b0566c7539e7dd584b4d0ebd3cec8cb2c; from b7df21cf1b79ab7026f545e7bf837bd5750ac026 before d03a82f4f8144befdc10518e732e2a60b34c870e; from b7df21cf1b79ab7026f545e7bf837bd5750ac026 before 614c5a5ae45a921595952117b2e2bd4d4bf9b574; from b7df21cf1b79ab7026f545e7bf837bd5750ac026 before 3210d34fda4caff212cb53729e6bd46de604d565; from b7df21cf1b79ab7026f545e7bf837bd5750ac026 before 97bf6f81b29a8efaf5d0983251a7450e5794370d; b2c8d28c34b3070407cb1741f9ba3f15d0284b8b; 5489f30bb78ff0dafb4229a69632afc2ba20765c; 436d650d374329a591c30339a91fa5078052ed1e; ace300eecbccaa698e2b472843c74a5f33f7dce8; and 8 more (not affected: before 5.13; from 4.19.314 up to 4.19.*; from 5.4.276 up to 5.4.*; from 5.10.217 up to 5.10.*; from 5.15.159 up to 5.15.*; from 6.1.91 up to 6.1.*; from 6.6.31 up to 6.6.*; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 4.4.271 before 4.5; from 4.9.271 before 4.10; from 4.14.235 before 4.15; from 4.19.193 before 4.19.314; from 5.4.124 before 5.4.276; from 5.10.42 before 5.10.217; from 5.12.9 before 5.15.159; from 5.16 before 6.1.91; from 6.2 before 6.6.31; from 6.7 before 6.8.10; 6.9
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/01cd1b7b685751ee422d00d050292a3d277652d6> (patch)
- <https://git.kernel.org/stable/c/2f87fd9476cf9725d774e6dcb7d17859c6a6d1ae> (patch)
- <https://git.kernel.org/stable/c/adbce6d20da6254c86425a8d4359b221b5ccbccd> (patch)
- <https://git.kernel.org/stable/c/42c8471b0566c7539e7dd584b4d0ebd3cec8cb2c> (patch)
- <https://git.kernel.org/stable/c/d03a82f4f8144befdc10518e732e2a60b34c870e> (patch)
- <https://git.kernel.org/stable/c/614c5a5ae45a921595952117b2e2bd4d4bf9b574> (patch)
- <https://git.kernel.org/stable/c/3210d34fda4caff212cb53729e6bd46de604d565> (patch)
- <https://git.kernel.org/stable/c/97bf6f81b29a8efaf5d0983251a7450e5794370d> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html> (mailing-list)

## Sources

- CVE List: [CVE-2024-36954](https://www.cve.org/CVERecord?id=CVE-2024-36954), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-36954](https://nvd.nist.gov/vuln/detail/CVE-2024-36954), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36954 · Whole record: https://cve.day/CVE-2024-36954.json · Rebuilt by cve.day 2026-11-25T22:58:41.300Z
