CVE-2025-22110

netfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error

State
Published
Severity
9.8 Critical
Published
Apr 16, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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").

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2d470c778120d3cdb8d8ab250329ca85f49f12b1 to before ddbf7e1d82a1d0c1d3425931a6cb1b83f8454759Affected
  • 2d470c778120d3cdb8d8ab250329ca85f49f12b1 to before 778b09d91baafb13408470c721d034d6515cfa5aAffected
LinuxLinux
  • 6.14Affected
  • before 6.14Not affected
  • 6.14.2 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.