{"id":"CVE-2023-54238","aliases":["CVE-2023-54238"],"related":[],"kind":"vulnerability","state":"published","title":"mlx5: fix skb leak while fifo resync and push","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlx5: fix skb leak while fifo resync and push\n\nDuring ptp resync operation SKBs were poped from the fifo but were never\nfreed neither by napi_consume nor by dev_kfree_skb_any. Add call to\nnapi_consume_skb to properly free SKBs.\n\nAnother leak was happening because mlx5e_skb_fifo_has_room() had an error\nin the check. Comparing free running counters works well unless C promotes\nthe types to something wider than the counter. In this case counters are\nu16 but the result of the substraction is promouted to int and it causes\nwrong result (negative value) of the check when producer have already\noverlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlx5: fix skb leak while fifo resync and push\n\nDuring ptp resync operation SKBs were poped from the fifo but were never\nfreed neither by napi_consume nor by dev_kfree_skb_any. Add call to\nnapi_consume_skb to properly free SKBs.\n\nAnother leak was happening because mlx5e_skb_fifo_has_room() had an error\nin the check. Comparing free running counters works well unless C promotes\nthe types to something wider than the counter. In this case counters are\nu16 but the result of the substraction is promouted to int and it causes\nwrong result (negative value) of the check when producer have already\noverlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmlx5: corrige la fuga de skb durante la resincronización y el envío de fifo\n\nDurante la operación de resincronización de ptp, los SKB fueron extraídos de la fifo pero nunca fueron liberados ni por napi_consume ni por dev_kfree_skb_any. Añade una llamada a napi_consume_skb para liberar correctamente los SKB.\n\nOtra fuga estaba ocurriendo porque mlx5e_skb_fifo_has_room() tenía un error en la comprobación. Comparar contadores de ejecución libre funciona bien a menos que C promueva los tipos a algo más amplio que el contador. En este caso, los contadores son u16 pero el resultado de la resta es promovido a int y causa un resultado incorrecto (valor negativo) de la comprobación cuando el productor ya se ha superpuesto pero el consumidor aún no lo ha hecho. Una conversión explícita a u16 soluciona el problema.","source":"nvd"}],"published":"2025-12-30T12:11:27.702Z","modified":"2026-10-15T22:17:56.340Z","severity":{"scorer":"Linux","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":"Linux","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":[],"affected":[{"ranges":[{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"234cffda95e1049f58e8ec136ef105c633f0ed19","status":"affected"},{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"68504c66d08c70fb92799722e25a932d311d74fd","status":"affected"},{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"e435941b1da1a0be4ff8a7ae425774c76a5ac514","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.18","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.5","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"}],"references":[{"url":"https://git.kernel.org/stable/c/234cffda95e1049f58e8ec136ef105c633f0ed19","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68504c66d08c70fb92799722e25a932d311d74fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e435941b1da1a0be4ff8a7ae425774c76a5ac514","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:39:43.149Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54238","url":"https://www.cve.org/CVERecord?id=CVE-2023-54238","licence":"CVE Terms of Use","modified":"2026-10-15T21:41:42.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54238","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54238","licence":"Public domain","modified":"2026-10-15T22:17:56.340Z"}],"updatedAt":"2026-11-25T22:58:35.237Z","epss":{"score":0.00163,"percentile":0.05766,"date":"2026-12-01T12:00:22.000Z"}}