# CVE-2022-49698: netfilter: use get\_random\_u32 instead of prandom

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-02-26T02:24:19.519Z
- **Modified:** 2026-06-17T05:18:53.813Z

## Who should check

- Anyone running Linux \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< d0906b0fffc9f19bc42708ca3e84e2089088386c; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 6ce71f83f798be7e1ca68707fec449fbecb38852; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< b1fd94e704571f98b21027340eecf821b2bdffba
- Anyone running Linux 4.18

## Description

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

netfilter: use get\_random\_u32 instead of prandom

bh might occur while updating per-cpu rnd\_state from user context,
ie. local\_out path.

BUG: using smp\_processor\_id() in preemptible \[00000000\] code: nginx/2725
caller is nft\_ng\_random\_eval+0x24/0x54 \[nft\_numgen\]
Call Trace:
 check\_preemption\_disabled+0xde/0xe0
 nft\_ng\_random\_eval+0x24/0x54 \[nft\_numgen\]

Use the random driver instead, this also avoids need for local prandom
state. Moreover, prandom now uses the random driver since d4150779e60f
("random32: use real rng for non-deterministic randomness").

Based on earlier patch from Pablo Neira.

## Affected and fixed versions

- Linux: \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< d0906b0fffc9f19bc42708ca3e84e2089088386c; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 6ce71f83f798be7e1ca68707fec449fbecb38852; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< b1fd94e704571f98b21027340eecf821b2bdffba (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49698. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49698.md
Affected: Linux >= 978d8f9055c3a7c35db2ac99cd2580b993396e33, < 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b; >= 978d8f9055c3a7c35db2ac99cd2580b993396e33, < d0906b0fffc9f19bc42708ca3e84e2089088386c; >= 978d8f9055c3a7c35db2ac99cd2580b993396e33, < 6ce71f83f798be7e1ca68707fec449fbecb38852; >= 978d8f9055c3a7c35db2ac9…
Fixed in: Linux 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b, Linux 6ce71f83f798be7e1ca68707fec449fbecb38852

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49698 being exploited?

There is no confirmed exploitation: CVE-2022-49698 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49698?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49698?

Linux \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< d0906b0fffc9f19bc42708ca3e84e2089088386c; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< 6ce71f83f798be7e1ca68707fec449fbecb38852; \>= 978d8f9055c3a7c35db2ac99cd2580b993396e33, \< b1fd94e704571f98b21027340eecf821b2bdffba; Linux 4.18.

### Is there a fix for CVE-2022-49698?

Yes. Fixed in Linux 15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b, Linux 6ce71f83f798be7e1ca68707fec449fbecb38852. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49698?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b>
- patch: <https://git.kernel.org/stable/c/d0906b0fffc9f19bc42708ca3e84e2089088386c>
- patch: <https://git.kernel.org/stable/c/6ce71f83f798be7e1ca68707fec449fbecb38852>
- patch: <https://git.kernel.org/stable/c/b1fd94e704571f98b21027340eecf821b2bdffba>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49698>

HTML: <https://flawdb.com/CVE-2022-49698> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49698>
