diff options
author | Richard Weinberger <richard@nod.at> | 2024-08-02 18:36:47 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-15 16:14:36 -0600 |
commit | 4f5cc096bfd0a591f8a11e86999e3d90a9484c34 (patch) | |
tree | 201c9c347730ed88a64c748a7fcc75af23ba6283 /drivers/ddr/imx/imx8m/ddr_init.c | |
parent | 3fb1df1e57ee26f4b92932de804ef265e5ae0d3b (diff) |
squashfs: Fix stack overflow while symlink resolving
The squashfs driver blindly follows symlinks, and calls sqfs_size()
recursively. So an attacker can create a crafted filesystem and with
a deep enough nesting level a stack overflow can be achieved.
Fix by limiting the nesting level to 8.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddr_init.c')
0 files changed, 0 insertions, 0 deletions