Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before eeac976b74b4f697cfc517187b7cbfd72652dbbc; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 125b05ac8ca8758950e4369c1542d57a162f504c; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 945f6cde6bcf8f08f6fa5df8882b1b9582e55efa; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 3a4a34a732e8a08309eed0a74314dbd9f2f1c972; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 6cfeef221ac00d63c07f6122f58e6159bde69ca0; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 8b12f65d7caf16d124098cb4895a203367d35b57; affected 21fed0d5b763b94a7d1568c27d0cce892ab8d43e before 455488cd5054bcc59db40fa1cc2c004031a5b2a5 |
| Linux / Linux | affected 3.2; unaffected 0 before 3.2; unaffected 5.10.271 through 5.10.*; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.111 through 6.12.*; unaffected 6.18.53 through 6.18.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/eeac976b74b4f697cfc517187b7cbfd72652dbbc
- https://git.kernel.org/stable/c/125b05ac8ca8758950e4369c1542d57a162f504c
- https://git.kernel.org/stable/c/945f6cde6bcf8f08f6fa5df8882b1b9582e55efa
- https://git.kernel.org/stable/c/3a4a34a732e8a08309eed0a74314dbd9f2f1c972
- https://git.kernel.org/stable/c/6cfeef221ac00d63c07f6122f58e6159bde69ca0
- https://git.kernel.org/stable/c/8b12f65d7caf16d124098cb4895a203367d35b57
- https://git.kernel.org/stable/c/455488cd5054bcc59db40fa1cc2c004031a5b2a5