{"id":"CVE-2025-39810","aliases":["CVE-2025-39810"],"related":[],"kind":"vulnerability","state":"published","title":"bnxt_en: Fix memory corruption when FW resources change during ifdown","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbnxt_en: Fix memory corruption when FW resources change during ifdown\n\nbnxt_set_dflt_rings() assumes that it is always called before any TC has\nbeen created.  So it doesn't take bp->num_tc into account and assumes\nthat it is always 0 or 1.\n\nIn the FW resource or capability change scenario, the FW will return\nflags in bnxt_hwrm_if_change() that will cause the driver to\nreinitialize and call bnxt_cancel_reservations().  This will lead to\nbnxt_init_dflt_ring_mode() calling bnxt_set_dflt_rings() and bp->num_tc\nmay be greater than 1.  This will cause bp->tx_ring[] to be sized too\nsmall and cause memory corruption in bnxt_alloc_cp_rings().\n\nFix it by properly scaling the TX rings by bp->num_tc in the code\npaths mentioned above.  Add 2 helper functions to determine\nbp->tx_nr_rings and bp->tx_nr_rings_per_tc.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbnxt_en: Fix memory corruption when FW resources change during ifdown\n\nbnxt_set_dflt_rings() assumes that it is always called before any TC has\nbeen created.  So it doesn't take bp->num_tc into account and assumes\nthat it is always 0 or 1.\n\nIn the FW resource or capability change scenario, the FW will return\nflags in bnxt_hwrm_if_change() that will cause the driver to\nreinitialize and call bnxt_cancel_reservations().  This will lead to\nbnxt_init_dflt_ring_mode() calling bnxt_set_dflt_rings() and bp->num_tc\nmay be greater than 1.  This will cause bp->tx_ring[] to be sized too\nsmall and cause memory corruption in bnxt_alloc_cp_rings().\n\nFix it by properly scaling the TX rings by bp->num_tc in the code\npaths mentioned above.  Add 2 helper functions to determine\nbp->tx_nr_rings and bp->tx_nr_rings_per_tc.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbnxt_en: Corrige la corrupción de memoria cuando los recursos del FW cambian durante el ifdown\n\nbnxt_set_dflt_rings() asume que siempre se llama antes de que se haya creado cualquier TC. Por lo tanto, no tiene en cuenta bp->num_tc y asume que siempre es 0 o 1.\n\nEn el escenario de cambio de recursos o capacidades del FW, el FW devolverá flags en bnxt_hwrm_if_change() que harán que el controlador se reinicialice y llame a bnxt_cancel_reservations(). Esto llevará a que bnxt_init_dflt_ring_mode() llame a bnxt_set_dflt_rings() y bp->num_tc puede ser mayor que 1. Esto hará que bp->tx_ring[] tenga un tamaño demasiado pequeño y cause corrupción de memoria en bnxt_alloc_cp_rings().\n\nSe corrige escalando correctamente los anillos TX por bp->num_tc en las rutas de código mencionadas anteriormente. Se añaden 2 funciones auxiliares para determinar bp->tx_nr_rings y bp->tx_nr_rings_per_tc.","source":"nvd"}],"published":"2025-09-16T13:00:12.677Z","modified":"2026-10-30T13:18:09.857Z","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"},{"scorer":"CISA-ADP","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"},{"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-787"],"affected":[{"ranges":[{"type":"git","introduced":"ec5d31e3c15d5233b491400133c67f78a320062c","fixed":"c0082a8947cf1a543013346d10c1857f0c57db83","status":"affected"},{"type":"git","introduced":"ec5d31e3c15d5233b491400133c67f78a320062c","fixed":"dc797a4bbbcac6d19e6e2508e4df685755cd94a5","status":"affected"},{"type":"git","introduced":"ec5d31e3c15d5233b491400133c67f78a320062c","fixed":"d00e98977ef519280b075d783653e2c492fffbb6","status":"affected"},{"type":"git","introduced":"ec5d31e3c15d5233b491400133c67f78a320062c","fixed":"9ab6a9950f152e094395d2e3967f889857daa185","status":"affected"},{"type":"git","introduced":"ec5d31e3c15d5233b491400133c67f78a320062c","fixed":"2747328ba2714f1a7454208dbbc1dc0631990b4a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.45","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.5","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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":"5.4","fixed":"6.12.45"},{"status":"affected","introduced":"6.13","fixed":"6.16.5"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c0082a8947cf1a543013346d10c1857f0c57db83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc797a4bbbcac6d19e6e2508e4df685755cd94a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d00e98977ef519280b075d783653e2c492fffbb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ab6a9950f152e094395d2e3967f889857daa185","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2747328ba2714f1a7454208dbbc1dc0631990b4a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T18:14:51.954Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39810","url":"https://www.cve.org/CVERecord?id=CVE-2025-39810","licence":"CVE Terms of Use","modified":"2026-10-30T12:22:29.953Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39810","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39810","licence":"Public domain","modified":"2026-10-30T13:18:09.857Z"}],"updatedAt":"2026-11-25T22:59:04.722Z","epss":{"score":0.00208,"percentile":0.11619,"date":"2026-12-01T12:00:22.000Z"}}