CVE-2026-89784
SUNRPC: check rpc_sockaddr2uaddr() return value in rpcb_register_inet4/6
Check your servers for CVE-2026-89784
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-2026-89784 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:
SUNRPC: check rpc_sockaddr2uaddr() return value in rpcb_register_inet4/6
rpcb_register_inet4() and rpcb_register_inet6() store the result of rpc_sockaddr2uaddr() into map->r_addr without checking it for NULL. rpc_sockaddr2uaddr() returns NULL when its final kstrdup() fails, and the unchecked NULL is then carried into the synchronous RPCBPROC_SET encode path: rpcb_register_call() -> rpc_call_sync() -> rpcb_enc_getaddr() -> encode_rpcb_string(), whose first statement is strlen(string), dereferencing NULL and oopsing the kernel.
The crash reproduces under failslab on v6.12; with KASAN the NULL dereference surfaces as a fault on the shadow of address zero:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000 [#1] PREEMPT SMP KASAN RIP: 0010:strlen (lib/string.c:409) Call Trace: encode_rpcb_string (net/sunrpc/rpcb_clnt.c:890) rpcb_enc_getaddr (net/sunrpc/rpcb_clnt.c:910) rpcauth_wrap_req_encode (net/sunrpc/auth.c:745) call_encode (net/sunrpc/clnt.c:1966) __rpc_execute (net/sunrpc/sched.c:952) rpc_run_task (net/sunrpc/clnt.c:1243) rpc_call_sync (net/sunrpc/clnt.c:1272) rpcb_v4_register (net/sunrpc/rpcb_clnt.c:500) svc_generic_rpcbind_set nfsd_rpcbind_set svc_register svc_setup_socket svc_addsock write_ports nfsctl_transaction_write vfs_write
The crash is reachable when an in-kernel RPC service (nfsd, lockd, nfs-callback) registers with the local rpcbind under enough memory pressure for the small GFP_KERNEL kstrdup() in rpc_sockaddr2uaddr() to fail. The asynchronous getport path already handles this exact failure mode by returning -ENOMEM; only the two register helpers omit the check.
Mirror that handling: bail out with -ENOMEM when rpc_sockaddr2uaddr() returns NULL, before the address is fed into the encoder.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before 04441b792ec40eb66349b5fab34b6a2090b5b2dd affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before 5a51c49ddb37b883566874aecc66bc5a2e617a96 affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before 4a6095de8cb1858e05bdf70b3e7d6d7645c25041 affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before 12bf3e0182ccdaf3b412756a756d3944a7dacaa9 affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before 4e01022974355732e748ec8ebc97c558cb624ffe affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before cda4aacfb0bbf5c0f90fd0b42c72c749635d1368 affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before eb476289c12cc22c8766f8a84eeb7ab46c4e8fb6 affected from d77385f23830ee6c400569bac8b37e6eb3b7d360, before fd22370226a0d8109045d0831fd5aaadee921693
Other versions: unaffected
|
| Linux |
affected 3.2 unaffected before 3.2 unaffected from 5.10.270 up to and including 5.10.* unaffected from 5.15.221 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.110 up to and including 6.12.* unaffected from 6.18.52 up to and including 6.18.* unaffected from 7.2.6 up to and including 7.2.* unaffected 7.3 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-2026-89784 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89784
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-2026-89784
trivy image --scanners vuln IMAGE | grep CVE-2026-89784
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/04441b792ec40eb66349b5fab34b6a2090b5b2dd git.kernel.org
- https://git.kernel.org/stable/c/5a51c49ddb37b883566874aecc66bc5a2e617a96 git.kernel.org
- https://git.kernel.org/stable/c/4a6095de8cb1858e05bdf70b3e7d6d7645c25041 git.kernel.org
- https://git.kernel.org/stable/c/12bf3e0182ccdaf3b412756a756d3944a7dacaa9 git.kernel.org
- https://git.kernel.org/stable/c/4e01022974355732e748ec8ebc97c558cb624ffe git.kernel.org
- https://git.kernel.org/stable/c/cda4aacfb0bbf5c0f90fd0b42c72c749635d1368 git.kernel.org
- https://git.kernel.org/stable/c/eb476289c12cc22c8766f8a84eeb7ab46c4e8fb6 git.kernel.org
- https://git.kernel.org/stable/c/fd22370226a0d8109045d0831fd5aaadee921693 git.kernel.org
Source: the record CVE-2026-89784 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse