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

S5tBaSr1tS  lAoAoTk#iZnCgL  aKt9  y@o@u1rN  sZo&fGt4wKa$r9eP  cArLi0tPiGcKaAlPlJy&.U

request briefing

request briefing

SLtQaErYtC  lQo2oHk%iTnIgI  aUtL  yHoJuNr7  sEo#fHt&w4a8rXe7  c1rPiSt7i2c0a6lDl7yJ.G

request briefing

request briefing

S3t5a8rLtC  lWoDo4kYiKnFgI  a5tD  yJo3uRrW  s8o2fJtMw4aAr$e0  cMr8iHtCi@cOaAl#l1yQ.O

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