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

S9tMa8rVt7  lZo3oEk@iQn%gW  aGtM  y2o2uIr8  s$oYfHt0wAa9rCeX  c#rGi7t1iRcJa8lSlOyG.U

request briefing

request briefing

SSt1aNrJtQ  lOoAoLk9i1n&gY  aJtA  yKoPu%rR  sPoGfEtRwTaTrZeZ  cOrPiSt8iKc1a&lMl&yA.M

request briefing

request briefing

SEtVaSrRt6  lMoDoAk7iWn5gX  aNt2  yNoWuXr$  sOoHfOt9wBaTrNeC  cEr%i9tRiCc5a$lVlAyT.%

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