cifs: validate idmap key payload length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 21fed0d5b763b94a7d1568c27d0cce892ab8d43e · < 8b12f65d7caf16d124098cb4895a203367d35b57| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: validate idmap key payload length
The cifs.idmap key type stores its payload length in key->datalen, which is limited to U16_MAX. Accepting a larger key payload truncates the recorded length and can make later users interpret the payload using inconsistent bounds.
Reject oversized preparsed payloads before allocating or copying them. This keeps key->datalen consistent with the stored data for both inline and separately allocated idmap payloads.
From the CVE record · Linux
The Linux kernel’s cifs.idmap key type can accept a payload larger than its recorded length can represent. If an oversized payload is supplied, the recorded length is truncated, so later users may interpret the payload with inconsistent bounds. The input does not specify network access, authentication requirements, or user interaction.
Engineers running Linux kernels with the cifs.idmap key type should check their versions; affected versions are not specified.