]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib: decompress_bunzip2: fix 32-bit shift undefined behavior
authorJosh Law <objecting@objecting.org>
Sun, 8 Mar 2026 16:50:12 +0000 (16:50 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:43 +0000 (21:19 -0700)
commitd4dba3b9c03a326cfa73833d6b166aeb442f82b5
treed4e148f85b571b5d94ed9cba9dd14f95cf540a66
parentb02da26a992db0c0e2559acbda0fc48d4a2fd337
lib: decompress_bunzip2: fix 32-bit shift undefined behavior

Fix undefined behavior caused by shifting a 32-bit integer by 32 bits
during decompression.  This prevents potential kernel decompression
failures or corruption when parsing malicious or malformed bzip2 archives.

Link: https://lkml.kernel.org/r/20260308165012.2872633-1-objecting@objecting.org
Signed-off-by: Josh Law <objecting@objecting.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/decompress_bunzip2.c