CVE-2026-22986
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
23/01/2026
Última modificación:
23/01/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
gpiolib: fix race condition for gdev->srcu<br />
<br />
If two drivers were calling gpiochip_add_data_with_key(), one may be<br />
traversing the srcu-protected list in gpio_name_to_desc(), meanwhile<br />
other has just added its gdev in gpiodev_add_to_list_unlocked().<br />
This creates a non-mutexed and non-protected timeframe, when one<br />
instance is dereferencing and using &gdev->srcu, before the other<br />
has initialized it, resulting in crash:<br />
<br />
[ 4.935481] Unable to handle kernel paging request at virtual address ffff800272bcc000<br />
[ 4.943396] Mem abort info:<br />
[ 4.943400] ESR = 0x0000000096000005<br />
[ 4.943403] EC = 0x25: DABT (current EL), IL = 32 bits<br />
[ 4.943407] SET = 0, FnV = 0<br />
[ 4.943410] EA = 0, S1PTW = 0<br />
[ 4.943413] FSC = 0x05: level 1 translation fault<br />
[ 4.943416] Data abort info:<br />
[ 4.943418] ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000<br />
[ 4.946220] CM = 0, WnR = 0, TnD = 0, TagAccess = 0<br />
[ 4.955261] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0<br />
[ 4.955268] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000038e6c000<br />
[ 4.961449] [ffff800272bcc000] pgd=0000000000000000<br />
[ 4.969203] , p4d=1000000039739003<br />
[ 4.979730] , pud=0000000000000000<br />
[ 4.980210] phandle (CPU): 0x0000005e, phandle (BE): 0x5e000000 for node "reset"<br />
[ 4.991736] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP<br />
...<br />
[ 5.121359] pc : __srcu_read_lock+0x44/0x98<br />
[ 5.131091] lr : gpio_name_to_desc+0x60/0x1a0<br />
[ 5.153671] sp : ffff8000833bb430<br />
[ 5.298440]<br />
[ 5.298443] Call trace:<br />
[ 5.298445] __srcu_read_lock+0x44/0x98<br />
[ 5.309484] gpio_name_to_desc+0x60/0x1a0<br />
[ 5.320692] gpiochip_add_data_with_key+0x488/0xf00<br />
5.946419] ---[ end trace 0000000000000000 ]---<br />
<br />
Move initialization code for gdev fields before it is added to<br />
gpio_devices, with adjacent initialization code.<br />
Adjust goto statements to reflect modified order of operations<br />
<br />
[Bartosz: fixed a build issue, removed stray newline]



