CVE-2026-99528
published high CVSS 3.1 · 7.8SUNRPC: fix netns use-after-free in write_gssp()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < f7f78a8f19c86ed9fcdf60b245bf4b96c93543db · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 49e2bc27ff9f6cd3843828a9f469a2e1af69a0cb · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < ff077f38c886616e4fc8e888f1212b9121bda81a · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < c538969194c2a47132fe1f96ba40f85e159d4f38 · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 0a908446c5edc42905f9136e91bbf4e45d0747b6 · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 3c3b401650227e147c609c33fa458d5d963f2918 · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 75120454474be7bc62b77af12bd591a339be27e1 · 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < e7a8721b7edb54a157623f9e31d71345333b5fb9 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.10 (affected) · 0 to < 3.10 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: fix netns use-after-free in write_gssp() While fuzzing with a customized syzkaller, I hit a refcount warning in xprt_alloc(), reached from a write to /proc/net/rpc/use-gss-proxy: refcount_t: addition on 0; use-after-free. WARNING: lib/refcount.c:25 at refcount_warn_saturate+0xf8/0x120 CPU: 0 PID: 10404 Comm: syz.0.17 Not tainted 7.3.0-rc1-00096-gcfebfd3db73d Call Trace: <TASK> xprt_alloc+0x83f/0x9d0 xs_setup_xprt+0xaf/0x3c0 xs_setup_local+0x47/0x7f0 xprt_create_transport+0x16c/0x730 rpc_create+0x38e/0x7f0 gssp_rpc_create+0xe2/0x180 set_gssp_clnt+0xba/0x1b0 write_gssp+0x200/0x310 proc_reg_write+0x240/0x330 vfs_write+0x2aa/0x1050 ksys_write+0x12a/0x250 do_syscall_64+0x117/0x750 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> create_use_gss_proxy_proc_entry() stores the struct net pointer as the proc entry's private data without taking a reference on it, and an open file descriptor does not pin the namespace either, as procfs only pins the proc_dir_entry. write_gssp() reads that pointer back with pde_data() and hands it to set_gssp_clnt(), which reaches xprt_init(): xprt->xprt_net = get_net_track(net, &xprt->ns_tracker, GFP_KERNEL); get_net_track() -> get_net() -> refcount_inc() is unconditional, so rpc_create() assumes its caller holds a reference on args.net. write_gssp() does not. Dropping the last ns.count reference does not make the file go away. __put_net() only queues cleanup_net() on a workqueue, and the remove_proc_entry() that fences off further writes runs from the rpcsec_gss pernet .exit method, that is, from inside cleanup_net(). A write landing between those two points increments a refcount that is already zero. cleanup_net() does not re-read ns.count, so the namespace is freed anyway and the rpc_xprt -- along with the AF_LOCAL socket opened for it -- is left pointing at freed memory. The resurrected count is visible to the rest of that teardown too: with CONFIG_IPV6_MROUTE the same cleanup_net() worker then trips !mr_can_free_table() in ip6mr_free_table(), which tests check_net() on the namespace it is freeing. It reduces to opening /proc/net/rpc/use-gss-proxy inside a new network namespace, calling setns() back to the original one to drop the last reference, and then writing "1" to the still-open descriptor. Take the reference in write_gssp() itself and refuse the write when the namespace is already gone. This is what procfs does for every other /proc/net file: get_proc_net() is maybe_get_net(PDE_NET(PDE(inode))) and seq_open_net() returns -ENXIO when it fails. PDE_NET() cannot be reused here because the parent directory /proc/net/rpc carries no namespace pointer. Adding a .pre_exit to rpcsec_gss_net_ops so the entry is removed earlier would only narrow the window, since pre_exit also runs from cleanup_net(). Live namespaces are unaffected: a write still returns the error from set_gssp_clnt(), a write of "2" still returns -EINVAL, and reads are untouched.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - write(2) reaches write_gssp() via proc_reg_write() on /proc/net/rpc/use-gss-proxy; the attacker-supplied byte is the local value "1". create_use_gss_proxy_proc_entry() stored the struct net with no reference, and set_gssp_clnt() only then has gssp_rpc_create() open an AF_LOCAL socket to /var/run/gssproxy.sock. AC:L - The attacker creates the netns, opens use-gss-proxy, and drops the last reference so __put_net() queues cleanup_net(), then writes "1" before rpcsec_gss_exit_net() calls remove_proc_entry(). That ordering is under the attacker's control, and once write_gssp() runs it always calls set_gssp_clnt() and get_net_track() on the zero refcount. PR:L - The proc file is created mode 0600 and inherits uid 0 of net->user_ns from proc_net_ns_init(). copy_namespaces() grants CLONE_NEWNET to a process with CAP_SYS_ADMIN in its user namespace, which an unprivileged user gets via CLONE_NEWUSER, so that user can open and write the file without init-namespace root. UI:N - Exploitation is the attacker's open of /proc/net/rpc/use-gss-proxy, an exit or setns that drops the netns, and a write of "1" on the surviving descriptor. No second user has to mount media, start gssproxy, or send an RPC. S:U - The fault stays in the kernel that executed write_gssp(): xprt_init() resurrects the netns refcount and cleanup_net() frees that namespace's unix hash and prot_inuse while the gssproxy socket from xs_local_setup_socket() still references them. C:H - xs_local_setup_socket() leaves a kern AF_LOCAL socket hashed in net->unx.table and counted in net->core.prot_inuse. Those allocations are kvfree'd and free_percpu'd from unix_net_exit() and sock_inuse_exit_net() while xprt_destroy() is still async, so unix_remove_socket() and unix_sock_destructor() read the reclaimed memory. I:H - unix_remove_socket() spin_lock()s net->unx.table.locks and __hlist_del() writes through sk->sk_node.pprev into the bucket unix_net_exit() already kvfree'd, and sock_prot_inuse_add() this_cpu_add()s the freed percpu counter. Reclaiming that kvmalloc buffer turns the unlink into a kernel write. A:H - get_net_track() in xprt_init() refcount_inc()s an ns refcount that is already zero, which refcount_warn_saturate() flags as a use-after-free, and the subsequent unix_remove_socket() and sock_prot_inuse_add() dereference memory freed during cleanup_net(), which oopses the kernel.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < f7f78a8f19c86ed9fcdf60b245bf4b96c93543db (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 49e2bc27ff9f6cd3843828a9f469a2e1af69a0cb (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < ff077f38c886616e4fc8e888f1212b9121bda81a (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < c538969194c2a47132fe1f96ba40f85e159d4f38 (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 0a908446c5edc42905f9136e91bbf4e45d0747b6 (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 3c3b401650227e147c609c33fa458d5d963f2918 (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < 75120454474be7bc62b77af12bd591a339be27e1 (affected · git)030d794bf49855f5e2a9e8dfbfad34211d1eb08b to < e7a8721b7edb54a157623f9e31d71345333b5fb9 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.10 (affected)0 to < 3.10 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0a908446c5edc42905f9136e91bbf4e45d0747b6
- https://git.kernel.org/stable/c/3c3b401650227e147c609c33fa458d5d963f2918
- https://git.kernel.org/stable/c/49e2bc27ff9f6cd3843828a9f469a2e1af69a0cb
- https://git.kernel.org/stable/c/75120454474be7bc62b77af12bd591a339be27e1
- https://git.kernel.org/stable/c/c538969194c2a47132fe1f96ba40f85e159d4f38
- https://git.kernel.org/stable/c/e7a8721b7edb54a157623f9e31d71345333b5fb9
- https://git.kernel.org/stable/c/f7f78a8f19c86ed9fcdf60b245bf4b96c93543db
- https://git.kernel.org/stable/c/ff077f38c886616e4fc8e888f1212b9121bda81a
Provider assertions
1Linux · cna
SUNRPC: fix netns use-after-free in write_gssp()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 73e53711a6f433a0a4f47fd357e8ff9fc80339f417c290fba710a2691ab472b8
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record