nfsd: fix XDR padding calculation in ff_encode_getdeviceinfo (Linux Linux)

CVE-2026-89673
Not available

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: nfsd: fix XDR padding calculation in ff_encode_getdeviceinfo nfsd4_ff_encode_getdeviceinfo() computes the da_addr_body reservation as 16 + netid_len + addr_len, but the subsequent xdr_encode_opaque() calls emit 8 + round_up(netid_len, 4) + round_up(addr_len, 4) bytes. The mismatch means the declared da_addr_body length exceeds the actual encoded data by 2-8 bytes on every flexfile GETDEVICEINFO reply, leaking stale reply-page content to the client and mis-aligning the subsequent version list decode. Use xdr_align_size() for each string length to match what xdr_encode_opaque() actually writes.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 3f1a2b0b2d575f39ff0bedb5411822fe7446a805 < 356decf074b82bac5564568203c12426dcea3470 ; affected 19a648a07572c70fbe16faf0fafaf3dce9fd998a < 15460c8e6c9bc92cda8f68bc419ac082300ab3d6 ; affected 6d08bd22fa2941a4d5ef45ed115dd00e484a93d7 < 9be67a6be48ddf2ebaa98c0df671690b8f9666e7 ; affected 6372e2ee629894433fe6107d7048536a3280a284 < 88bce7e326c368d7df15126ccac537e54bebd467 ; affected 6372e2ee629894433fe6107d7048536a3280a284 < 74015b7be806ad9e21d46f7bd2831df280c6c783 ; affected 6372e2ee629894433fe6107d7048536a3280a284 < 41ebca28e17f84293650598f86bd69532ec1a8e0
Linux · Linuxaffected 6.6 ; unaffected 0 < 6.6 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

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