CVE-2026-63967
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
iio: imu: st_lsm6dsx: fix stack leak in tagged FIFO buffer
Het getagde FIFO-pad verklaart iio_buff op de stapel met __uitgelijnd(8)
maar geen initialisator, maar er zit een gat in de structuur, dat
dan lekken naar gebruikersruimte als ST_LSM6DSX_SAMPLE_SIZE bytes (6) zal worden
gekopieerd, maar de ruimte tussen die en de tijdstempel zijn niet
geïnitialiseerd. Commit c14edb4d0bdc ("iio:imu:st_lsm6dsx Fix uitlijning en datalek
problemen") het ongetagde FIFO-pad verplaatst naar een kzalloc'd-buffer in hw->scan,
maar voor het getagde pad voegde het alleen de uitlijningskwalificatie toe en niet
de initialisator :(
Los dit op door de structuur op de stapel op nul te initialiseren.
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
iio: imu: st_lsm6dsx: fix stack leak in tagged FIFO buffer
The tagged FIFO path declares iio_buff on the stack with __aligned(8)
but no initializer, but there is a hole in the structure, which will
then leak to userspace as ST_LSM6DSX_SAMPLE_SIZE bytes (6) will be
copied, but the space between that and the timestamp are not
initialized.
Commit c14edb4d0bdc ("iio:imu:st_lsm6dsx Fix alignment and data leak
issues") moved the untagged FIFO path to a kzalloc'd buffer in hw->scan,
but for the tagged path it only added the alignment qualifier and not
the initializer :(
Fix this by just zero-initializing the structure on the stack.