{"id":"CVE-2026-143258","summary":"net/mlx5e: TC, Fix double free of branch in failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: TC, Fix double free of branch in failure\n\nWhen allocating the false branch fails in parse_branch_ctrl(), the\nalready allocated true branch is freed but attr-\u003ebranch_true is left\npointing to it. The caller parse_tc_actions() fails the flow, and\nfree_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again\nfree_branch_attr() on attr-\u003ebranch_true.\n\nClear the pointer after freeing it.\n\nThis bug is theoretical and was compile tested only.","modified":"2026-12-03T11:01:50.684576195Z","published":"2026-12-03T09:21:04.667Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143258.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/014272105371b140affcee740039cb5f6dc63baa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/31f9b43a3bb3d2201eadd147440252d0912dab21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46296baedd20ca100cdc2260415d02a65596e76d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4dfba871c220c3581dada988f6ba57104163111c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143258.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143258"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f86488cb4685bbb885057afa0b61bb8afc1d6bb1"},{"fixed":"4dfba871c220c3581dada988f6ba57104163111c"},{"fixed":"46296baedd20ca100cdc2260415d02a65596e76d"},{"fixed":"014272105371b140affcee740039cb5f6dc63baa"},{"fixed":"31f9b43a3bb3d2201eadd147440252d0912dab21"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143258.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143258.json"}}],"schema_version":"1.9.2"}