# CVE-2025-22110: netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/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.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:57.061Z
- Modified: 2026-08-05T11:56:50.656Z
- Weaknesses: CWE-908
- Assigned by: Linux

## Description

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

netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error

It is possible that ctx in nfqnl_build_packet_message() could be used
before it is properly initialize, which is only initialized
by nfqnl_get_sk_secctx().

This patch corrects this problem by initializing the lsmctx to a safe
value when it is declared.

This is similar to the commit 35fcac7a7c25
("audit: Initialize lsmctx to avoid memory allocation error").

(As written by CVE List.)

## Affected

- Linux Linux: from 2d470c778120d3cdb8d8ab250329ca85f49f12b1 before ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759; from 2d470c778120d3cdb8d8ab250329ca85f49f12b1 before 778b09d91baafb13408470c721d034d6515cfa5a; 6.14 (not affected: before 6.14; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.14 before 6.14.2

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759> (patch)
- <https://git.kernel.org/stable/c/778b09d91baafb13408470c721d034d6515cfa5a> (patch)

## Sources

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

---

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