NFSD: cap the number of listeners accepted in listener_set (Linux Linux)

CVE-2026-99372
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: NFSD: cap the number of listeners accepted in listener_set nfsd_nl_listener_set_doit() matches each requested listener against the existing set. The nested loop that does this is O(N * M), where N is the requested count and M is the existing count. The loop runs under sv_lock with bottom halves disabled. A userland request with a very large listener list can therefore spin in atomic context for a long time. Reject a request that carries more than NFSD_NL_LISTENER_MAX (1024) entries. The check goes in nfsd_nl_validate_listeners(), before the code takes any lock. The limit is far above any realistic configuration. This patch does not cap M. Only the message size bounded N; real sockets bound M. A listener_set result set is the requested set, so that path also holds M at the cap, but __write_ports_addxprt() adds two listeners per call and removes none, so repeated calls can push M past it. The worst case under sv_lock is therefore 1024 * M, plus 1024 nla_parse_nested() calls. Both interfaces require CAP_NET_ADMIN.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 16a471177496c8e04a9793812c187a2c1a2192fa < 4a6c685d7e443d5c12197d01576202544247d107
affected : ≥ 16a471177496c8e04a9793812c187a2c1a2192fa < f256b39c64e956d9db46c5a42be99f9fe9685919
affected : ≥ 16a471177496c8e04a9793812c187a2c1a2192fa < 340fd5acb07f0299e71afc54a4a4b32e129177c4
affected : ≥ 16a471177496c8e04a9793812c187a2c1a2192fa < 9a05e5ee0a98b9550521df86936b5f825bc07ec2
Other versions : unaffected
Linux · Linux
affected : 6.10
unaffected : ≥ 0 < 6.10
unaffected : ≥ 6.12.117 ≤ 6.12.*
unaffected : ≥ 6.18.61 ≤ 6.18.*
unaffected : ≥ 7.3.2 ≤ 7.3.*
unaffected : ≥ 7.4-rc1 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD