CVE-2026-98851: netfilter: nft_flow_offload: drop flowtable reference on init error path

Published Oct 18, 2026
·
Updated

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

netfilter: nftflowoffload: drop flowtable reference on init error path

nftflowoffloadinit() bumps the flowtable use count with nftuseinc() before calling nfctnetnsget(). When the latter fails, the error is returned as-is and the reference is leaked.

The upper layers do not balance it either: nftablesnewexpr() clears expr->ops when the expression init callback fails, so the nftexprmore() iteration in nftruleexprdeactivate() and nftablesruledestroy() stops right before the failed expression and its ->destroy callback, which would drop the reference, never runs.

Each failed rule addition therefore leaks one flowtable reference and the flowtable can no longer be removed: NFTMSGDELFLOWTABLE keeps reporting -EBUSY even though no rule references it.

Save the nfctnetnsget() return value and undo the nftuseinc() when it fails, restoring the inc/dec pairing within nftflowoffloadinit() itself.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 18, 2026
CVE Published
via MITRE·03:50 PM
Data Sourced
via MITRE·03:50 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the leaked flowtable reference?

A rule addition must use the nft_flow_offload expression, and its initialization must reach a failure from nf_ct_netns_get() after nft_use_inc() has incremented the flowtable use count. Each such failed rule addition leaks one reference.

2

What is the operational impact if the issue is triggered?

The affected flowtable remains permanently busy despite having no rule references. Attempts to remove it with NFT_MSG_DELFLOWTABLE return -EBUSY.

3

How can an administrator identify an affected flowtable?

A flowtable may be affected when it has no rules referencing it but deletion through NFT_MSG_DELFLOWTABLE continues to fail with -EBUSY. The condition follows one or more failed additions of rules using nft_flow_offload.

4

What does the fix change?

The fix drops the flowtable reference when nf_ct_netns_get() fails during nft_flow_offload initialization. This restores the expected increment/decrement pairing within nft_flow_offload_init().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203