CVE-2022-49450
rxrpc: Fix listen() setting the bar too high for the prealloc rings
Check your servers for CVE-2022-49450
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49450 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix listen() setting the bar too high for the prealloc rings
AF_RXRPC's listen() handler lets you set the backlog up to 32 (if you bump up the sysctl), but whilst the preallocation circular buffers have 32 slots in them, one of them has to be a dead slot because we're using CIRC_CNT().
This means that listen(rxrpc_sock, 32) will cause an oops when the socket is closed because rxrpc_service_prealloc_one() allocated one too many calls and rxrpc_discard_prealloc() won't then be able to get rid of them because it'll think the ring is empty. rxrpc_release_calls_on_socket() then tries to abort them, but oopses because call->peer isn't yet set.
Fix this by setting the maximum backlog to RXRPC_BACKLOG_MAX - 1 to match the ring capacity.
BUG: kernel NULL pointer dereference, address: 0000000000000086 ... RIP: 0010:rxrpc_send_abort_packet+0x73/0x240 [rxrpc] Call Trace: <TASK> ? __wake_up_common_lock+0x7a/0x90 ? rxrpc_notify_socket+0x8e/0x140 [rxrpc] ? rxrpc_abort_call+0x4c/0x60 [rxrpc] rxrpc_release_calls_on_socket+0x107/0x1a0 [rxrpc] rxrpc_release+0xc9/0x1c0 [rxrpc] __sock_release+0x37/0xa0 sock_close+0x11/0x20 __fput+0x89/0x240 task_work_run+0x59/0x90 do_exit+0x319/0xaa0
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 61fb38cfbb1d54d3dafd0c25752f684b3cd00b32 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 616f76498d5ddf26b997caf64a95cda3c8a55533 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 4a3a78b7918bdd723d8c7c9786522ca969bffcc4 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 91b34bf0409f43bb60453bab23c5beadd726d022 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 5b4826657d36c218e9f08e8d3223b0edce3de88f affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before b3a9b227d5e7467b8518160ff034ea22bb9de573 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 369de57492c4f1a42563c5a3bd365822ca3bfc79 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before e198f1930050e3115c80b67d9249f80f98a27c67 affected from 00e907127e6f86d0f9b122d9b4347a8aa09a8b61, before 88e22159750b0d55793302eeed8ee603f5c1a95c
Other versions: unaffected
|
| Linux |
affected 4.9 unaffected before 4.9 unaffected from 4.9.318 up to and including 4.9.* unaffected from 4.14.283 up to and including 4.14.* unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.121 up to and including 5.10.* unaffected from 5.15.46 up to and including 5.15.* unaffected from 5.17.14 up to and including 5.17.* unaffected from 5.18.3 up to and including 5.18.* unaffected 5.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49450 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49450
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49450
trivy image --scanners vuln IMAGE | grep CVE-2022-49450
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/61fb38cfbb1d54d3dafd0c25752f684b3cd00b32 git.kernel.org
- https://git.kernel.org/stable/c/616f76498d5ddf26b997caf64a95cda3c8a55533 git.kernel.org
- https://git.kernel.org/stable/c/4a3a78b7918bdd723d8c7c9786522ca969bffcc4 git.kernel.org
- https://git.kernel.org/stable/c/91b34bf0409f43bb60453bab23c5beadd726d022 git.kernel.org
- https://git.kernel.org/stable/c/5b4826657d36c218e9f08e8d3223b0edce3de88f git.kernel.org
- https://git.kernel.org/stable/c/b3a9b227d5e7467b8518160ff034ea22bb9de573 git.kernel.org
- https://git.kernel.org/stable/c/369de57492c4f1a42563c5a3bd365822ca3bfc79 git.kernel.org
- https://git.kernel.org/stable/c/e198f1930050e3115c80b67d9249f80f98a27c67 git.kernel.org
- https://git.kernel.org/stable/c/88e22159750b0d55793302eeed8ee603f5c1a95c git.kernel.org
Source: the record CVE-2022-49450 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse