In the Linux kernel, the following vulnerability has been resolved: nfc: nci: free skb on nci_transceive early error paths nci_transceive() takes ownership of the skb passed by the caller, but the -EPROTO, -EINVAL, and -EBUSY error paths return without freeing it. Due to issues clearing NCI_DATA_EXCHANGE fixed by subsequent changes the nci/nci_dev selftest hits the error path occasionally in NIPA, and kmemleak detects leaks: unreferenced object 0xff11000015ce6a40 (size 640): comm "nci_dev", pid 3954, jiffies 4295441246 hex dump (first 32 bytes): 6b 6b 6b 6b 00 a4 00 0c 02 e1 03 6b 6b 6b 6b 6b kkkk.......kkkkk 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk backtrace (crc 7c40cc2a): kmem_cache_alloc_node_noprof+0x492/0x630 __alloc_skb+0x11e/0x5f0 alloc_skb_with_frags+0xc6/0x8f0 sock_alloc_send_pskb+0x326/0x3f0 nfc_alloc_send_skb+0x94/0x1d0 rawsock_sendmsg+0x162/0x4c0 do_syscall_64+0x117/0xfc0
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: nfc: nci: liberar skb en las rutas de error tempranas de nci_transceive nci_transceive() toma posesión del skb pasado por el llamador, pero las rutas de error -EPROTO, -EINVAL y -EBUSY regresan sin liberarlo. Debido a problemas al limpiar NCI_DATA_EXCHANGE corregidos por cambios posteriores, la autoprueba nci/nci_dev alcanza la ruta de error ocasionalmente en NIPA, y kmemleak detecta fugas: objeto sin referencia 0xff11000015ce6a40 (tamaño 640): comm 'nci_dev', pid 3954, jiffies 4295441246 volcado hexadecimal (primeros 32 bytes): 6b 6b 6b 6b 00 a4 00 0c 02 e1 03 6b 6b 6b 6b 6b kkkk.......kkkkk 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk backtrace (crc 7c40cc2a): kmem_cache_alloc_node_noprof+0x492/0x630 __alloc_skb+0x11e/0x5f0 alloc_skb_with_frags+0xc6/0x8f0 sock_alloc_send_pskb+0x326/0x3f0 nfc_alloc_send_skb+0x94/0x1d0 rawsock_sendmsg+0x162/0x4c0 do_syscall_64+0x117/0xfc0
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | NONE |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-401
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd2905c0500> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd2905c3e80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd319eb88c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd36a68b440> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd2905c0840> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd2905c0a40> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7fd3847a4780> | Operating System |
| linux | linux_kernel | 3.2 | <built-in method update of dict object at 0x7fd319ebac00> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd289d32d00> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd2905c10c0> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd36be632c0> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd2905c3c40> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd36be62880> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd3686c0c00> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7fd3847a6a40> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:3.2:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* |