{"id":"CVE-2026-23164","aliases":["CVE-2026-23164"],"related":[],"kind":"vulnerability","state":"published","title":"rocker: fix memory leak in rocker_world_port_post_fini()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrocker: fix memory leak in rocker_world_port_post_fini()\n\nIn rocker_world_port_pre_init(), rocker_port->wpriv is allocated with\nkzalloc(wops->port_priv_size, GFP_KERNEL). However, in\nrocker_world_port_post_fini(), the memory is only freed when\nwops->port_post_fini callback is set:\n\n    if (!wops->port_post_fini)\n        return;\n    wops->port_post_fini(rocker_port);\n    kfree(rocker_port->wpriv);\n\nSince rocker_ofdpa_ops does not implement port_post_fini callback\n(it is NULL), the wpriv memory allocated for each port is never freed\nwhen ports are removed. This leads to a memory leak of\nsizeof(struct ofdpa_port) bytes per port on every device removal.\n\nFix this by always calling kfree(rocker_port->wpriv) regardless of\nwhether the port_post_fini callback exists.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrocker: fix memory leak in rocker_world_port_post_fini()\n\nIn rocker_world_port_pre_init(), rocker_port->wpriv is allocated with\nkzalloc(wops->port_priv_size, GFP_KERNEL). However, in\nrocker_world_port_post_fini(), the memory is only freed when\nwops->port_post_fini callback is set:\n\n    if (!wops->port_post_fini)\n        return;\n    wops->port_post_fini(rocker_port);\n    kfree(rocker_port->wpriv);\n\nSince rocker_ofdpa_ops does not implement port_post_fini callback\n(it is NULL), the wpriv memory allocated for each port is never freed\nwhen ports are removed. This leads to a memory leak of\nsizeof(struct ofdpa_port) bytes per port on every device removal.\n\nFix this by always calling kfree(rocker_port->wpriv) regardless of\nwhether the port_post_fini callback exists.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nrocker: corregir fuga de memoria en rocker_world_port_post_fini()\n\nEn rocker_world_port_pre_init(), rocker_port-&gt;wpriv se asigna con kzalloc(wops-&gt;port_priv_size, GFP_KERNEL). Sin embargo, en rocker_world_port_post_fini(), la memoria solo se libera cuando la devolución de llamada wops-&gt;port_post_fini está establecida:\n\n    si (!wops-&gt;port_post_fini)\n        retornar;\n    wops-&gt;port_post_fini(rocker_port);\n    kfree(rocker_port-&gt;wpriv);\n\nDado que rocker_ofdpa_ops no implementa la devolución de llamada port_post_fini (es NULL), la memoria wpriv asignada para cada puerto nunca se libera cuando se eliminan los puertos. Esto conduce a una fuga de memoria de sizeof(struct ofdpa_port) bytes por puerto en cada eliminación de dispositivo.\n\nSolucione esto llamando siempre a kfree(rocker_port-&gt;wpriv) independientemente de si existe la devolución de llamada port_post_fini.","source":"nvd"}],"published":"2026-02-14T16:01:28.624Z","modified":"2026-10-19T19:17:39.880Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"2a3a64d75d2d0727da285749476761ebcad557a3","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"b11e6f926480ab0939fec44781f28558c54be4e7","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"8ce2e85889939c02740b4245301aa5c35fc94887","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"d448bf96889f1905e740c554780f5c9fa0440566","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"d8723917efda3b4f4c3de78d1ec1e1af015c0be1","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"dce375f4afc348c310d171abcde7ec1499a4c26a","status":"affected"},{"type":"git","introduced":"e420114eef4a3a5025a243b89b0dc343101e3d3c","fixed":"8d7ba71e46216b8657a82ca2ec118bc93812a4d0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"5.10.249","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.123","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.69","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.9","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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":"4.6","fixed":"5.10.249"},{"status":"affected","introduced":"5.11","fixed":"5.15.199"},{"status":"affected","introduced":"5.16","fixed":"6.1.162"},{"status":"affected","introduced":"6.2","fixed":"6.6.123"},{"status":"affected","introduced":"6.7","fixed":"6.12.69"},{"status":"affected","introduced":"6.13","fixed":"6.18.9"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2a3a64d75d2d0727da285749476761ebcad557a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b11e6f926480ab0939fec44781f28558c54be4e7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ce2e85889939c02740b4245301aa5c35fc94887","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d448bf96889f1905e740c554780f5c9fa0440566","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8723917efda3b4f4c3de78d1ec1e1af015c0be1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dce375f4afc348c310d171abcde7ec1499a4c26a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d7ba71e46216b8657a82ca2ec118bc93812a4d0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-10T20:41:35.705Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23164","url":"https://www.cve.org/CVERecord?id=CVE-2026-23164","licence":"CVE Terms of Use","modified":"2026-10-19T18:25:33.850Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23164","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23164","licence":"Public domain","modified":"2026-10-19T19:17:39.880Z"}],"updatedAt":"2026-11-25T22:59:13.898Z","epss":{"score":0.00175,"percentile":0.07244,"date":"2026-12-01T12:00:22.000Z"}}