{"id":"CVE-2026-23031","summary":"can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak\n\nIn gs_can_open(), the URBs for USB-in transfers are allocated, added to the\nparent-\u003erx_submitted anchor and submitted. In the complete callback\ngs_usb_receive_bulk_callback(), the URB is processed and resubmitted. In\ngs_can_close() the URBs are freed by calling\nusb_kill_anchored_urbs(parent-\u003erx_submitted).\n\nHowever, this does not take into account that the USB framework unanchors\nthe URB before the complete function is called. This means that once an\nin-URB has been completed, it is no longer anchored and is ultimately not\nreleased in gs_can_close().\n\nFix the memory leak by anchoring the URB in the\ngs_usb_receive_bulk_callback() to the parent-\u003erx_submitted anchor.","modified":"2026-04-02T17:29:58.948047Z","published":"2026-01-31T11:42:09.276Z","related":["SUSE-SU-2026:20838-1","SUSE-SU-2026:20931-1","openSUSE-SU-2026:20416-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23031.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08624b7206ddb9148eeffc2384ebda2c47b6d1e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7352e1d5932a0e777e39fa4b619801191f57e603"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f669a38ca70839229b7ba0f851820850a2fe1f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec5ccc2af9e5b045671f3f604b57512feda8bcc5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f905bcfa971edb89e398c98957838d8c6381c0c7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23031.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23031"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d08e973a77d128b25e01a08c34d89593fdf222da"},{"fixed":"ec5ccc2af9e5b045671f3f604b57512feda8bcc5"},{"fixed":"f905bcfa971edb89e398c98957838d8c6381c0c7"},{"fixed":"08624b7206ddb9148eeffc2384ebda2c47b6d1e9"},{"fixed":"9f669a38ca70839229b7ba0f851820850a2fe1f7"},{"fixed":"7352e1d5932a0e777e39fa4b619801191f57e603"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23031.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.16.0"},{"fixed":"6.1.162"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.122"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.67"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23031.json"}}],"schema_version":"1.7.5"}