{"id":"CVE-2026-98851","aliases":["CVE-2026-98851"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nft_flow_offload: drop flowtable reference on init error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_flow_offload: drop flowtable reference on init error path\n\nnft_flow_offload_init() bumps the flowtable use count with\nnft_use_inc() before calling nf_ct_netns_get().  When the latter\nfails, the error is returned as-is and the reference is leaked.\n\nThe upper layers do not balance it either: nf_tables_newexpr()\nclears expr->ops when the expression init callback fails, so the\nnft_expr_more() iteration in nft_rule_expr_deactivate() and\nnf_tables_rule_destroy() stops right before the failed expression\nand its ->destroy callback, which would drop the reference, never\nruns.\n\nEach failed rule addition therefore leaks one flowtable reference\nand the flowtable can no longer be removed: NFT_MSG_DELFLOWTABLE\nkeeps reporting -EBUSY even though no rule references it.\n\nSave the nf_ct_netns_get() return value and undo the nft_use_inc()\nwhen it fails, restoring the inc/dec pairing within\nnft_flow_offload_init() itself.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nft_flow_offload: drop flowtable reference on init error path\n\nnft_flow_offload_init() bumps the flowtable use count with\nnft_use_inc() before calling nf_ct_netns_get().  When the latter\nfails, the error is returned as-is and the reference is leaked.\n\nThe upper layers do not balance it either: nf_tables_newexpr()\nclears expr->ops when the expression init callback fails, so the\nnft_expr_more() iteration in nft_rule_expr_deactivate() and\nnf_tables_rule_destroy() stops right before the failed expression\nand its ->destroy callback, which would drop the reference, never\nruns.\n\nEach failed rule addition therefore leaks one flowtable reference\nand the flowtable can no longer be removed: NFT_MSG_DELFLOWTABLE\nkeeps reporting -EBUSY even though no rule references it.\n\nSave the nf_ct_netns_get() return value and undo the nft_use_inc()\nwhen it fails, restoring the inc/dec pairing within\nnft_flow_offload_init() itself.","source":"cvelist"}],"published":"2026-10-18T15:50:50.910Z","modified":"2026-10-30T13:21:30.727Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"4e5a6d89083af6f23f0ac2cb611ef267590a3ece","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"1f43b6b099fa39032780b9494cedfd98f318f3c4","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"87f4914758f2da10b56cdb7f90ed815ade1e8ea3","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"1d27214fd9a4d2c0c6d998fc9d4fb61448a3438e","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"64ac0cb574c740bf723affb79b646eeba920db6b","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"c5f91098edee98c015f78488460a0609e62582a5","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"4cd378423a33194a773c267fc58606d28fce95cf","status":"affected"},{"type":"git","introduced":"a3c90f7a2323b331ae816d5b0633e68148e25d04","fixed":"747928b5d4ff8c8de55138a54c13980e4bb88578","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/4e5a6d89083af6f23f0ac2cb611ef267590a3ece","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f43b6b099fa39032780b9494cedfd98f318f3c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87f4914758f2da10b56cdb7f90ed815ade1e8ea3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d27214fd9a4d2c0c6d998fc9d4fb61448a3438e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64ac0cb574c740bf723affb79b646eeba920db6b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5f91098edee98c015f78488460a0609e62582a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4cd378423a33194a773c267fc58606d28fce95cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/747928b5d4ff8c8de55138a54c13980e4bb88578","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98851","url":"https://www.cve.org/CVERecord?id=CVE-2026-98851","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:13.069Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98851","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98851","licence":"Public domain","modified":"2026-10-30T13:21:30.727Z"}],"updatedAt":"2026-11-25T22:59:45.326Z","epss":{"score":0.00208,"percentile":0.1162,"date":"2026-12-01T12:00:22.000Z"}}