In the Linux kernel, the following vulnerability has been resolved: nfp: hold IPsec RX state under the XArray lock nfp_net_ipsec_rx() drops the… (CVE-2026-98561)
Description
A vulnerability in the Linux kernel's nfp driver was resolved involving improper handling of IPsec RX state references under the XArray lock. The function nfp_net_ipsec_rx() released the XArray lock before safely acquiring a reference to the xfrm_state, allowing a race condition where the state could be deleted and its reference count dropped to zero. This could lead to attempts to increment a zero reference count after the state was queued for destruction. The issue arises because the asynchronous firmware invalidation and delayed garbage collection do not prevent invalid reference acquisition. The fix ensures the xfrm_state reference is taken before releasing the XArray lock, preventing the race condition.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's nfp driver involves the nfp_net_ipsec_rx() function dropping the XArray lock before acquiring a reference to the xfrm_state it found. This allows the delete path to erase the entry and drop the last state reference concurrently, leading to attempts to increment a zero reference count after the state has been queued for destruction. The asynchronous nature of firmware invalidation and the delayed reclamation by the XFRM garbage collector do not prevent this invalid reference acquisition. The resolution is to acquire the xfrm_state reference before releasing the XArray lock, preventing xa_erase() from running between lookup and reference acquisition.
Potential Impact
This vulnerability could cause use-after-free or reference count corruption in the IPsec RX state handling within the Linux kernel's nfp driver. Such issues may lead to kernel instability or crashes. There is no indication of known exploits in the wild. The impact is limited to the affected driver code and could affect systems using this driver for IPsec processing.
Mitigation Recommendations
A fix has been implemented that changes the code to acquire the xfrm_state reference before releasing the XArray lock, preventing the race condition. Users should apply the official Linux kernel updates that include this fix once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory or Linux kernel mailing lists for the current remediation status.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6wr4-6g5h-j9qm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98561"]
Threat ID: 6ad520af2cdf04f656993ab5
Added to database: 10/18/2026, 19:40:31 UTC
Last enriched: 10/18/2026, 20:49:18 UTC
Last updated: 10/18/2026, 22:28:10 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.