In the Linux kernel, the following vulnerability has been resolved:
ASoC: cs35l41: Fix an out-of-bounds access in otppackedelement_t
The CS35L41NUMOTPELEM is 100, but only 99 entries are defined in the array otpmap1/2[CS35L41NUMOTPELEM], this will trigger UBSAN to report a shift-out-of-bounds warning in the cs35l41otpunpack() since the last entry in the array will result in GENMASK(-1, 0).
UBSAN reports this problem: UBSAN: shift-out-of-bounds in /home/hwang4/build/jammy/jammy/sound/soc/codecs/cs35l41-lib.c:836:8 shift exponent 64 is too large for 64-bit type 'long unsigned int' CPU: 10 PID: 595 Comm: systemd-udevd Not tainted 5.15.0-23-generic #23 Hardware name: LENOVO \x02MFGINGO/\x02MFGINGO, BIOS N3GET19W (1.00 ) 03/11/2022 Call Trace: <TASK> showstack+0x52/0x58 dumpstacklvl+0x4a/0x5f dumpstack+0x10/0x12 ubsanepilogue+0x9/0x45 _ubsanhandleshiftoutofbounds.cold+0x61/0xef ? regmapunlockmutex+0xe/0x10 cs35l41otpunpack.cold+0x1c6/0x2b2 [sndsoccs35l41lib] cs35l41hdaprobe+0x24f/0x33a [sndhdascodeccs35l41] cs35l41hdai2cprobe+0x65/0x90 [sndhdascodeccs35l41i2c] ? cs35l41hdai2cremove+0x20/0x20 [sndhdascodeccs35l41i2c] i2cdevice_probe+0x252/0x2b0