In the Linux kernel, the following vulnerability has been resolved: crypto: qat - avoid OOB read when stripping RSA leading zeros The logical AND operator uses short-circuit evaluation: the first operand is always evaluated, while the second is evaluated only if the first is true. Because the first operand dereferences a pointer, it may cause an out-of-bounds access before the bounds check in the second operand is evaluated. Resolve this by checking the vlen prior to the pointer being dereferenced.
https://git.kernel.org/stable/c/e4f4ed956733a562a77a515201d737eda14dbb52
https://git.kernel.org/stable/c/e27e3ede7a65e1a5e58e7a46b3e85d9cfb066c23
https://git.kernel.org/stable/c/ae9ea939ad52e5f4dca93f49e5f62a1b88bf7cb5
https://git.kernel.org/stable/c/ac508238898058f0b09b18a7891fb31279617781
https://git.kernel.org/stable/c/a18c2bdb4686de91b24020e1590ee5e7d7886e2a
https://git.kernel.org/stable/c/4bf23041536d02008610b152f3e93bee0aba872a
https://git.kernel.org/stable/c/39634fe8cee9833891290cf5174cf06472ecef83
https://git.kernel.org/stable/c/146ed488e74edaaebdee922f82901eafa2ae1c29