{"id":"CVE-2026-99372","aliases":["CVE-2026-99372"],"related":[],"kind":"vulnerability","state":"published","title":"NFSD: cap the number of listeners accepted in listener_set","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: cap the number of listeners accepted in listener_set\n\nnfsd_nl_listener_set_doit() matches each requested listener against the\nexisting set. The nested loop that does this is O(N * M), where N is the\nrequested count and M is the existing count. The loop runs under sv_lock\nwith bottom halves disabled. A userland request with a very large listener\nlist can therefore spin in atomic context for a long time.\n\nReject a request that carries more than NFSD_NL_LISTENER_MAX (1024)\nentries. The check goes in nfsd_nl_validate_listeners(), before the code\ntakes any lock. The limit is far above any realistic configuration.\n\nThis patch does not cap M. Only the message size bounded N; real sockets\nbound M. A listener_set result set is the requested set, so that path also\nholds M at the cap, but __write_ports_addxprt() adds two listeners per call\nand removes none, so repeated calls can push M past it. The worst case\nunder sv_lock is therefore 1024 * M, plus 1024 nla_parse_nested() calls.\nBoth interfaces require CAP_NET_ADMIN.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: cap the number of listeners accepted in listener_set\n\nnfsd_nl_listener_set_doit() matches each requested listener against the\nexisting set. The nested loop that does this is O(N * M), where N is the\nrequested count and M is the existing count. The loop runs under sv_lock\nwith bottom halves disabled. A userland request with a very large listener\nlist can therefore spin in atomic context for a long time.\n\nReject a request that carries more than NFSD_NL_LISTENER_MAX (1024)\nentries. The check goes in nfsd_nl_validate_listeners(), before the code\ntakes any lock. The limit is far above any realistic configuration.\n\nThis patch does not cap M. Only the message size bounded N; real sockets\nbound M. A listener_set result set is the requested set, so that path also\nholds M at the cap, but __write_ports_addxprt() adds two listeners per call\nand removes none, so repeated calls can push M past it. The worst case\nunder sv_lock is therefore 1024 * M, plus 1024 nla_parse_nested() calls.\nBoth interfaces require CAP_NET_ADMIN.","source":"cvelist"}],"published":"2026-11-19T14:23:08.511Z","modified":"2026-11-19T15:17:49.083Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"16a471177496c8e04a9793812c187a2c1a2192fa","fixed":"4a6c685d7e443d5c12197d01576202544247d107","status":"affected"},{"type":"git","introduced":"16a471177496c8e04a9793812c187a2c1a2192fa","fixed":"f256b39c64e956d9db46c5a42be99f9fe9685919","status":"affected"},{"type":"git","introduced":"16a471177496c8e04a9793812c187a2c1a2192fa","fixed":"340fd5acb07f0299e71afc54a4a4b32e129177c4","status":"affected"},{"type":"git","introduced":"16a471177496c8e04a9793812c187a2c1a2192fa","fixed":"9a05e5ee0a98b9550521df86936b5f825bc07ec2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4a6c685d7e443d5c12197d01576202544247d107","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f256b39c64e956d9db46c5a42be99f9fe9685919","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/340fd5acb07f0299e71afc54a4a4b32e129177c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a05e5ee0a98b9550521df86936b5f825bc07ec2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99372","url":"https://www.cve.org/CVERecord?id=CVE-2026-99372","licence":"CVE Terms of Use","modified":"2026-11-19T14:38:04.468Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99372","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99372","licence":"Public domain","modified":"2026-11-19T15:17:49.083Z"}],"updatedAt":"2026-11-25T22:59:52.047Z","epss":{"score":0.00224,"percentile":0.13953,"date":"2026-12-02T12:00:21.000Z"}}