{"id":"CVE-2023-53106","aliases":["CVE-2023-53106"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: st-nci: Fix use after free bug in ndlc_remove due to race condition","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: st-nci: Fix use after free bug in ndlc_remove due to race condition\n\nThis bug influences both st_nci_i2c_remove and st_nci_spi_remove.\nTake st_nci_i2c_remove as an example.\n\nIn st_nci_i2c_probe, it called ndlc_probe and bound &ndlc->sm_work\nwith llt_ndlc_sm_work.\n\nWhen it calls ndlc_recv or timeout handler, it will finally call\nschedule_work to start the work.\n\nWhen we call st_nci_i2c_remove to remove the driver, there\nmay be a sequence as follows:\n\nFix it by finishing the work before cleanup in ndlc_remove\n\nCPU0                  CPU1\n\n                    |llt_ndlc_sm_work\nst_nci_i2c_remove   |\n  ndlc_remove       |\n     st_nci_remove  |\n     nci_free_device|\n     kfree(ndev)    |\n//free ndlc->ndev   |\n                    |llt_ndlc_rcv_queue\n                    |nci_recv_frame\n                    |//use ndlc->ndev","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: st-nci: Fix use after free bug in ndlc_remove due to race condition\n\nThis bug influences both st_nci_i2c_remove and st_nci_spi_remove.\nTake st_nci_i2c_remove as an example.\n\nIn st_nci_i2c_probe, it called ndlc_probe and bound &ndlc->sm_work\nwith llt_ndlc_sm_work.\n\nWhen it calls ndlc_recv or timeout handler, it will finally call\nschedule_work to start the work.\n\nWhen we call st_nci_i2c_remove to remove the driver, there\nmay be a sequence as follows:\n\nFix it by finishing the work before cleanup in ndlc_remove\n\nCPU0                  CPU1\n\n                    |llt_ndlc_sm_work\nst_nci_i2c_remove   |\n  ndlc_remove       |\n     st_nci_remove  |\n     nci_free_device|\n     kfree(ndev)    |\n//free ndlc->ndev   |\n                    |llt_ndlc_rcv_queue\n                    |nci_recv_frame\n                    |//use ndlc->ndev","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nfc: st-nci: Fix use after free bug en ndlc_remove debido a una condición de ejecución Este error afecta tanto a st_nci_i2c_remove como a st_nci_spi_remove. Tomemos st_nci_i2c_remove como ejemplo. En st_nci_i2c_probe, llamó a ndlc_probe y vinculó &amp;ndlc-&gt;sm_work con llt_ndlc_sm_work. Cuando llama a ndlc_recv o al controlador de tiempo de espera, finalmente llamará a schedule_work para iniciar el trabajo. Cuando llamamos a st_nci_i2c_remove para eliminar el controlador, puede haber una secuencia como la siguiente: Arréglelo finalizando el trabajo antes de la limpieza en ndlc_remove CPU0 CPU1 |llt_ndlc_sm_work st_nci_i2c_remove | ndlc_remove | st_nci_remove | nci_free_device| kfree(ndev) | //liberar ndlc-&gt;ndev | |llt_ndlc_rcv_queue |nci_recv_frame |//usar ndlc-&gt;ndev","source":"nvd"}],"published":"2025-05-02T15:55:47.501Z","modified":"2026-06-17T06:44:18.537Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"2156490c4b7cacda9a18ec99929940b8376dc0e3","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"3405eb641dafcc8b28d174784b203c1622c121bf","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"b0c202a8dc63008205a5d546559736507a9aae66","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"43aa468df246175207a7d5d7d6d31b231f15b49c","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"84dd9cc34014e3a3dcce0eb6d54b8a067e97676b","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"5e331022b448fbc5e76f24349cd0246844dcad25","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"f589e5b56c562d99ea74e05b1c3f0eab78aa17a3","status":"affected"},{"type":"git","introduced":"35630df68d6030daf12dde12ed07bbe26324e6ac","fixed":"5000fe6c27827a61d8250a7e4a1d26c3298ef4f6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.17","status":"unaffected"},{"type":"semver","introduced":"4.14.311","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.279","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.238","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.176","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.104","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.21","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.8","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.17","fixed":"4.14.311"},{"status":"affected","introduced":"4.15","fixed":"4.19.279"},{"status":"affected","introduced":"4.20","fixed":"5.4.238"},{"status":"affected","introduced":"5.5","fixed":"5.10.176"},{"status":"affected","introduced":"5.11","fixed":"5.15.104"},{"status":"affected","introduced":"5.16","fixed":"6.1.21"},{"status":"affected","introduced":"6.2","fixed":"6.2.8"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2156490c4b7cacda9a18ec99929940b8376dc0e3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3405eb641dafcc8b28d174784b203c1622c121bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0c202a8dc63008205a5d546559736507a9aae66","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43aa468df246175207a7d5d7d6d31b231f15b49c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84dd9cc34014e3a3dcce0eb6d54b8a067e97676b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e331022b448fbc5e76f24349cd0246844dcad25","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f589e5b56c562d99ea74e05b1c3f0eab78aa17a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5000fe6c27827a61d8250a7e4a1d26c3298ef4f6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53106","url":"https://www.cve.org/CVERecord?id=CVE-2023-53106","licence":"CVE Terms of Use","modified":"2026-05-11T19:38:37.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53106","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53106","licence":"Public domain","modified":"2026-06-17T06:44:18.537Z"}],"updatedAt":"2026-11-25T22:58:34.672Z","epss":{"score":0.00211,"percentile":0.12076,"date":"2026-12-01T12:00:22.000Z"}}