Linux Kernel

โ€ข

severity

7.8

published

The Linux kernel's NFC/NCI subsystem can write beyond its fixed-size discovered-target array when an NFC controller repeatedly restarts discovery and reports automatically activated targets. The unchecked target count causes a kernel heap out-of-bounds write and can also make subsequent code walk beyond the array.

nci_target_auto_activated() appended entries to ndev->targets[NCI_MAX_DISCOVERED_TARGETS] and incremented ndev->n_targets without checking whether the array was already full. An NFC controller can repeatedly return the device to discovery and report another automatically activated target without causing the target list to be cleared, eventually driving the count beyond the array's capacity.

The fix adds the same bounds check already used by nci_add_new_target(). The vulnerability is classified as CWE-787 and was reproduced as a KASAN slab out-of-bounds write in nci_add_new_protocol().


References

CVSS v3.1

7.8

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1

7.8

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1

7.8

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

SWt#aQrDtI  l6oKoUkBi9n7gZ  aVtU  yWo9u$rZ  sKo0f9tKw3a%r4e2  cNrFiTtAiBc7a@lAlAy&.X

request briefing

request briefing

S6tGaSrLt7  lCo5oTkOi1n9gI  aOt%  y8o3u%rJ  sGo@fLtZwOaXr2eH  cJrOiHt1iTcGa#l2lJy1.X

request briefing

request briefing

SCt&aPrYtV  l&oZo%kKi2nHgS  aVtI  y%oLuGrF  sMo#f8tEwCaJrOe7  cDr1i6tIi9cYa%lRlXy&.V

request briefing

request briefing

BYNARIO s.r.l. | PIAZZA BORROMEO 12, 20129 MILAN, ITALY | VAT- IT14434720968

all rights reserved

2026

BYNARIO s.r.l. | PIAZZA BORROMEO 12, 20129 MILAN, ITALY | VAT- IT14434720968

all rights reserved

2026

BYNARIO s.r.l. | PIAZZA BORROMEO 12, 20129 MILAN, ITALY | VAT- IT14434720968

all rights reserved

2026