# CVE-2025-22064: netfilter: nf_tables: don't unregister hook when table is dormant

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:18.870Z
- Modified: 2026-06-17T08:44:58.010Z
- Assigned by: Linux

## Description

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

netfilter: nf_tables: don't unregister hook when table is dormant

When nf_tables_updchain encounters an error, hook registration needs to
be rolled back.

This should only be done if the hook has been registered, which won't
happen when the table is flagged as dormant (inactive).

Just move the assignment into the registration block.

(As written by CVE List.)

## Affected

- Linux Linux: from b9703ed44ffbfba85c103b9de01886a225e14b38 before 6134d1ea1e1408e8e7c8c26545b3b301cbdf1eda; from b9703ed44ffbfba85c103b9de01886a225e14b38 before feb1fa2a03a27fec7001e93e4223be4120d1784b; from b9703ed44ffbfba85c103b9de01886a225e14b38 before 03d1fb457b696c18fe15661440c4f052b2374e7e; from b9703ed44ffbfba85c103b9de01886a225e14b38 before ce571eba07d54e3637bf334bc48376fbfa55defe; from b9703ed44ffbfba85c103b9de01886a225e14b38 before 688c15017d5cd5aac882400782e7213d40dc3556; d131ce7a319d3bff68d5a9d5509bb22e4ce33946; from 6.3.3 before 6.4; 6.4 (not affected: before 6.4; from 6.6.87 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.3.3 before 6.6.87; from 6.7 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## References

- <https://git.kernel.org/stable/c/6134d1ea1e1408e8e7c8c26545b3b301cbdf1eda> (patch)
- <https://git.kernel.org/stable/c/feb1fa2a03a27fec7001e93e4223be4120d1784b> (patch)
- <https://git.kernel.org/stable/c/03d1fb457b696c18fe15661440c4f052b2374e7e> (patch)
- <https://git.kernel.org/stable/c/ce571eba07d54e3637bf334bc48376fbfa55defe> (patch)
- <https://git.kernel.org/stable/c/688c15017d5cd5aac882400782e7213d40dc3556> (patch)

## Sources

- CVE List: [CVE-2025-22064](https://www.cve.org/CVERecord?id=CVE-2025-22064), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-22064](https://nvd.nist.gov/vuln/detail/CVE-2025-22064), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22064 · Whole record: https://cve.day/CVE-2025-22064.json · Rebuilt by cve.day 2026-11-25T22:58:56.591Z
