CVE Database›CVE-2022-49622

CVE-2022-49622

kernel: netfilter: nf_tables: avoid skb access on nf_stolen

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · February 26, 2025

Updated · October 30, 2026

Description

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

netfilter: nf_tables: avoid skb access on nf_stolen

When verdict is NF_STOLEN, the skb might have been freed.

When tracing is enabled, this can result in a use-after-free:

  1. access to skb->nf_trace
  2. access to skb->mark
  3. computation of trace id
  4. dump of packet payload

To avoid 1, keep a cached copy of skb->nf_trace in the trace state struct. Refresh this copy whenever verdict is != STOLEN.

Avoid 2 by skipping skb->mark access if verdict is STOLEN.

3 is avoided by precomputing the trace id.

Only dump the packet when verdict is not "STOLEN".

Statement

This vulnerability is rated as Moderate because exploitation requires local privileges or unprivileged user namespace access alongside active packet tracing, limiting the attack surface in standard production environments. In typical Red Hat Enterprise Linux deployments, nf_tables packet tracing is not enabled by default and requires administrative interaction or custom rules to activate. An attacker with appropriate local permissions could trigger a use-after-free condition during packet processing when handling stolen socket buffers, potentially leading to a system crash and denial of service.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE not specified