{"id":"CVE-2022-49698","aliases":["CVE-2022-49698"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: use get_random_u32 instead of prandom","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: use get_random_u32 instead of prandom\n\nbh might occur while updating per-cpu rnd_state from user context,\nie. local_out path.\n\nBUG: using smp_processor_id() in preemptible [00000000] code: nginx/2725\ncaller is nft_ng_random_eval+0x24/0x54 [nft_numgen]\nCall Trace:\n check_preemption_disabled+0xde/0xe0\n nft_ng_random_eval+0x24/0x54 [nft_numgen]\n\nUse the random driver instead, this also avoids need for local prandom\nstate. Moreover, prandom now uses the random driver since d4150779e60f\n(\"random32: use real rng for non-deterministic randomness\").\n\nBased on earlier patch from Pablo Neira.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: use get_random_u32 instead of prandom\n\nbh might occur while updating per-cpu rnd_state from user context,\nie. local_out path.\n\nBUG: using smp_processor_id() in preemptible [00000000] code: nginx/2725\ncaller is nft_ng_random_eval+0x24/0x54 [nft_numgen]\nCall Trace:\n check_preemption_disabled+0xde/0xe0\n nft_ng_random_eval+0x24/0x54 [nft_numgen]\n\nUse the random driver instead, this also avoids need for local prandom\nstate. Moreover, prandom now uses the random driver since d4150779e60f\n(\"random32: use real rng for non-deterministic randomness\").\n\nBased on earlier patch from Pablo Neira.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: el uso de get_random_u32 en lugar de prandom bh podría ocurrir mientras se actualiza rnd_state por CPU desde el contexto del usuario, es decir, la ruta local_out. ERROR: uso de smp_processor_id() en código preemptible [00000000]: el llamador de nginx/2725 es nft_ng_random_eval+0x24/0x54 [nft_numgen] Rastreo de llamadas: check_preemption_disabled+0xde/0xe0 nft_ng_random_eval+0x24/0x54 [nft_numgen] Use el controlador aleatorio en su lugar, esto también evita la necesidad de un estado prandom local. Además, prandom ahora usa el controlador aleatorio desde d4150779e60f (\"random32: use real rng for non-deterministic randomness\"). Basado en un parche anterior de Pablo Neira.","source":"nvd"}],"published":"2025-02-26T02:24:19.519Z","modified":"2026-06-17T05:18:53.813Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"978d8f9055c3a7c35db2ac99cd2580b993396e33","fixed":"15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b","status":"affected"},{"type":"git","introduced":"978d8f9055c3a7c35db2ac99cd2580b993396e33","fixed":"d0906b0fffc9f19bc42708ca3e84e2089088386c","status":"affected"},{"type":"git","introduced":"978d8f9055c3a7c35db2ac99cd2580b993396e33","fixed":"6ce71f83f798be7e1ca68707fec449fbecb38852","status":"affected"},{"type":"git","introduced":"978d8f9055c3a7c35db2ac99cd2580b993396e33","fixed":"b1fd94e704571f98b21027340eecf821b2bdffba","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"5.10.127","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.51","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.8","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.18","fixed":"5.10.127"},{"status":"affected","introduced":"5.11","fixed":"5.15.51"},{"status":"affected","introduced":"5.16","fixed":"5.18.8"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/15cc30ac2a8d7185f8ebf97dd1ddd90a7c79783b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0906b0fffc9f19bc42708ca3e84e2089088386c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ce71f83f798be7e1ca68707fec449fbecb38852","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1fd94e704571f98b21027340eecf821b2bdffba","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49698","url":"https://www.cve.org/CVERecord?id=CVE-2022-49698","licence":"CVE Terms of Use","modified":"2026-05-11T19:04:59.536Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49698","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49698","licence":"Public domain","modified":"2026-06-17T05:18:53.813Z"}],"updatedAt":"2026-11-25T22:58:20.810Z","epss":{"score":0.00296,"percentile":0.23937,"date":"2026-12-01T12:00:22.000Z"}}