# CVE-2023-54035: netfilter: nf_tables: fix underflow in chain reference counter

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-12-24T10:56:02.358Z
- Modified: 2026-08-05T09:16:39.727Z
- Assigned by: Linux

## Description

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

netfilter: nf_tables: fix underflow in chain reference counter

Set element addition error path decrements reference counter on chains
twice: once on element release and again via nft_data_release().

Then, d6b478666ffa ("netfilter: nf_tables: fix underflow in object
reference counter") incorrectly fixed this by removing the stateful
object reference count decrement.

Restore the stateful object decrement as in b91d90368837 ("netfilter:
nf_tables: fix leaking object reference count") and let
nft_data_release() decrement the chain reference counter, so this is
done only once.

(As written by CVE List.)

## Affected

- Linux Linux: from 35651fde1a7bb54dde0a46d35cd0d7136869ae86 before b068314fd8ce751a7f906e55bb90f3551815f1a0; from 628bd3e49cba1c066228e23d71a852c23e26da73 before 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; from 628bd3e49cba1c066228e23d71a852c23e26da73 before b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b3a36549a3705b1; 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50; a136b7942ad2a50de708f76ea299ccb45ac7a7f9; 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8; d60be2da67d172aecf866302c91ea11533eca4d9; dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41; from 4.19.316 before 4.20; from 5.4.262 before 5.5; from 5.10.188 before 5.11; and 3 more (not affected: before 6.4; from 6.4.4 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/b068314fd8ce751a7f906e55bb90f3551815f1a0>
- <https://git.kernel.org/stable/c/9c959671abc7d4ffdf34eed10c64492d43cb6a3c>
- <https://git.kernel.org/stable/c/b389139f12f287b8ed2e2628b72df89a081f0b59>

## Sources

- CVE List: [CVE-2023-54035](https://www.cve.org/CVERecord?id=CVE-2023-54035), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-54035](https://nvd.nist.gov/vuln/detail/CVE-2023-54035), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-54035 · Whole record: https://cve.day/CVE-2023-54035.json · Rebuilt by cve.day 2026-11-25T22:58:35.149Z
