{"id":"CVE-2026-80784","aliases":["CVE-2026-80784"],"related":[],"kind":"vulnerability","state":"published","title":"mptcp: pm: fix memory leak from alloc-during-teardown race","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: pm: fix memory leak from alloc-during-teardown race\n\nmptcp_pm_destroy() empties msk->pm.anno_list and\nmsk->pm.userspace_pm_local_addr_list under msk->pm.lock during socket\nteardown, dropping the lock between the two.\n\nA concurrent userspace PM genl ANNOUNCE on the same msk holds a sock\nreference via mptcp_token_get_sock() and, in\nmptcp_pm_nl_announce_doit(), calls\nmptcp_userspace_pm_append_new_local_addr() and\nmptcp_pm_announced_alloc(). Both take msk->pm.lock briefly to add to\ntheir respective lists. Because the genl handler holds a sock reference,\nmptcp_pm_destroy() may run on the same msk via mptcp_disconnect(), which\ninvokes mptcp_destroy_common() without dropping the sock refcount,\nbefore the handler completes.\n\nIf the lock acquisitions interleave such that mptcp_pm_destroy() empties\na list first, the later alloc adds its entry to a list head that nothing\nelse iterates for this msk, and the entry leaks. kmemleak reports both\nmptcp_pm_add_addr objects (from mptcp_pm_announced_alloc()) and\nmptcp_pm_addr_entry objects (from\nmptcp_userspace_pm_append_new_local_addr()) under sustained concurrent\nANNOUNCE + close load against the userspace PM.\n\nAdd an MPTCP_PM_DESTROYING bit in msk->pm.status, set by\nmptcp_pm_destroy() under pm.lock before the lists are emptied and\nchecked under pm.lock by the alloc paths. Either the alloc takes pm.lock\nfirst, in which case its entry is on the list when mptcp_pm_destroy()\nfrees it; or mptcp_pm_destroy() takes pm.lock first, in which case the\nlater alloc observes the bit and refuses.\n\nFound by an MPTCP protocol-flow harness extending BRF (arXiv:2305.08782).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: pm: fix memory leak from alloc-during-teardown race\n\nmptcp_pm_destroy() empties msk->pm.anno_list and\nmsk->pm.userspace_pm_local_addr_list under msk->pm.lock during socket\nteardown, dropping the lock between the two.\n\nA concurrent userspace PM genl ANNOUNCE on the same msk holds a sock\nreference via mptcp_token_get_sock() and, in\nmptcp_pm_nl_announce_doit(), calls\nmptcp_userspace_pm_append_new_local_addr() and\nmptcp_pm_announced_alloc(). Both take msk->pm.lock briefly to add to\ntheir respective lists. Because the genl handler holds a sock reference,\nmptcp_pm_destroy() may run on the same msk via mptcp_disconnect(), which\ninvokes mptcp_destroy_common() without dropping the sock refcount,\nbefore the handler completes.\n\nIf the lock acquisitions interleave such that mptcp_pm_destroy() empties\na list first, the later alloc adds its entry to a list head that nothing\nelse iterates for this msk, and the entry leaks. kmemleak reports both\nmptcp_pm_add_addr objects (from mptcp_pm_announced_alloc()) and\nmptcp_pm_addr_entry objects (from\nmptcp_userspace_pm_append_new_local_addr()) under sustained concurrent\nANNOUNCE + close load against the userspace PM.\n\nAdd an MPTCP_PM_DESTROYING bit in msk->pm.status, set by\nmptcp_pm_destroy() under pm.lock before the lists are emptied and\nchecked under pm.lock by the alloc paths. Either the alloc takes pm.lock\nfirst, in which case its entry is on the list when mptcp_pm_destroy()\nfrees it; or mptcp_pm_destroy() takes pm.lock first, in which case the\nlater alloc observes the bit and refuses.\n\nFound by an MPTCP protocol-flow harness extending BRF (arXiv:2305.08782).","source":"cvelist"}],"published":"2026-09-04T15:12:56.125Z","modified":"2026-09-04T16:18:04.333Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"f48341830e4202db3fe884b819b2db6740f0537d","status":"affected"},{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"bb32e9a6a9a9f99eeda16c4efe443400f3e43892","status":"affected"},{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"b2a0b55bf613bd3e81ed26a847b0f6b8e6b7f804","status":"affected"},{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"9fe5eebb664ecdba88f3fde18062d94b1d1c465f","status":"affected"},{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"6c290915a03fc8228b473641025cf762b256dbd2","status":"affected"},{"type":"git","introduced":"9ab4807c84a4aacfc9b4f79cc81254035e0ec361","fixed":"efc33b5102ff859bacd390a5f30112d8e0c084c0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.154","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.106","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.47","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.11","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f48341830e4202db3fe884b819b2db6740f0537d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb32e9a6a9a9f99eeda16c4efe443400f3e43892","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2a0b55bf613bd3e81ed26a847b0f6b8e6b7f804","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fe5eebb664ecdba88f3fde18062d94b1d1c465f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c290915a03fc8228b473641025cf762b256dbd2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/efc33b5102ff859bacd390a5f30112d8e0c084c0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80784","url":"https://www.cve.org/CVERecord?id=CVE-2026-80784","licence":"CVE Terms of Use","modified":"2026-09-04T15:12:56.125Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80784","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80784","licence":"Public domain","modified":"2026-09-04T16:18:04.333Z"}],"updatedAt":"2026-11-25T22:59:36.324Z","epss":{"score":0.00173,"percentile":0.06979,"date":"2026-12-02T12:00:21.000Z"}}