Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in smb2_allocate_rsp_buf(). This patch allocate response buffer after decrypting transform request. smb3_decrypt_req() will validate transform request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 0626e6641f6b467447c81dd7678a69c66f7746cf before da21401372607c49972ea87a6edaafb36a17c325; affected 0626e6641f6b467447c81dd7678a69c66f7746cf before b80ba648714e6d790d69610cf14656be222d0248; affected 0626e6641f6b467447c81dd7678a69c66f7746cf before 3160d9734453a40db248487f8204830879c207f1; affected 0626e6641f6b467447c81dd7678a69c66f7746cf before 0977f89722eceba165700ea384f075143f012085; affected 0626e6641f6b467447c81dd7678a69c66f7746cf before c119f4ede3fa90a9463f50831761c28f989bfb20 |
| Linux / Linux | affected 5.15; unaffected 0 before 5.15; unaffected 5.15.159 through 5.15.*; unaffected 6.1.88 through 6.1.*; unaffected 6.6.29 through 6.6.*; unaffected 6.8.8 through 6.8.*; unaffected 6.9 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/da21401372607c49972ea87a6edaafb36a17c325
- https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248
- https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1
- https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085
- https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20
ADP enrichment
No English description supplied.
No references supplied.
No English description supplied.
- https://git.kernel.org/stable/c/da21401372607c49972ea87a6edaafb36a17c325
- https://git.kernel.org/stable/c/b80ba648714e6d790d69610cf14656be222d0248
- https://git.kernel.org/stable/c/3160d9734453a40db248487f8204830879c207f1
- https://git.kernel.org/stable/c/0977f89722eceba165700ea384f075143f012085
- https://git.kernel.org/stable/c/c119f4ede3fa90a9463f50831761c28f989bfb20
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/