Skip to content
DayZeroHub
High Not yet writtenCVSS 7.8CVE-2026-99528

CVE-2026-99528: SUNRPC: fix netns use-after-free in write_gssp()

Linux Linux

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-99528: high-severity vulnerability (CVSS 7.8) in Linux Linux.

What happened

Original description from the source: 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 re…

Why it matters

High severity, CVSS 7.8.

Affected products and versions

Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < f7f78a8f19c86ed9fcdf60b245bf4b96c93543db; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 49e2bc27ff9f6cd3843828a9f469a2e1af69a0cb; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < ff077f38c886616e4fc8e888f1212b9121bda81a; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < c538969194c2a47132fe1f96ba40f85e159d4f38; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 0a908446c5edc42905f9136e91bbf4e45d0747b6; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 3c3b401650227e147c609c33fa458d5d963f2918; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 75120454474be7bc62b77af12bd591a339be27e1; Linux Linux >= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < e7a8721b7edb54a157623f9e31d71345333b5fb9; Linux Linux 3.10; Linux Linux < 3.10; Linux Linux 5.10.275 (fixed in 5.10.275); Linux Linux 5.15.226 (fixed in 5.15.226)

ProductVersionsFixed in
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < f7f78a8f19c86ed9fcdf60b245bf4b96c93543db—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 49e2bc27ff9f6cd3843828a9f469a2e1af69a0cb—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < ff077f38c886616e4fc8e888f1212b9121bda81a—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < c538969194c2a47132fe1f96ba40f85e159d4f38—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 0a908446c5edc42905f9136e91bbf4e45d0747b6—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 3c3b401650227e147c609c33fa458d5d963f2918—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < 75120454474be7bc62b77af12bd591a339be27e1—
Linux Linux>= 030d794bf49855f5e2a9e8dfbfad34211d1eb08b, < e7a8721b7edb54a157623f9e31d71345333b5fb9—
Linux Linux3.10—
Linux Linux< 3.10—
Linux Linux5.10.2755.10.275
Linux Linux5.15.2265.15.226
Linux Linux6.1.1936.1.193
Linux Linux6.6.1636.6.163
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Action recommended by the source

Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1.

Fixed in: 5.10.275, 5.15.226, 6.1.193, 6.12.117, 6.18.61, 6.6.163, 7.3.2, 7.4-rc1

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Relevant change history

  1. Published

    Preliminary advisory published.