Shellfeed logo Shellfeed

CVE-2026-89545 · HIGH (CVSS 7.8)

Summary: sunrpc: defer rq_argp and rq_resp free until after RCU grace period

Details

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

sunrpc: defer rq_argp and rq_resp free until after RCU grace period

svc_rqst_free() frees rqstp->rq_argp and rqstp->rq_resp synchronously
via kfree(), but defers the rqstp struct free via kfree_rcu(). After
svc_exit_thread() calls list_del_rcu() and svc_rqst_free(), there is
a window where RCU readers that started before list_del_rcu() can still
traverse the thread list and find the rqstp. These readers (e.g.
nfsd_nl_rpc_status_get_dumpit()) dereference rqstp->rq_argp, which has
already been freed — a use-after-free.

Fix this by moving the kfree of rq_argp and rq_resp into an explicit
call_rcu() callback alongside the struct free. Resources not accessed
by RCU readers (bvec, buffer pages, scratch folio, auth_data) remain
synchronously freed.

Severity

HIGH (CVSS 7.8) — vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [812443865c5fc255363d4a684a62c086af1addca – c977158237bccc3d2512d5b17c47ee3760dc8839]
  • Linux Kernel [3.19.0 – 6.1.191] [6.2.0 – 6.12.111] [6.13.0 – 6.18.50] [6.19.0 – 7.2.4]

References