{"id":"CVE-2026-23031","state":"PUBLISHED","title":"can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak","description":"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->rx_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->rx_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->rx_submitted anchor.","publishedAt":"2026-01-31T11:42:09.276Z","updatedAt":"2026-06-02T13:00:52.214Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"9c151898cc259a7784be60ba38664f42ede39b31","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"ec5ccc2af9e5b045671f3f604b57512feda8bcc5","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"f905bcfa971edb89e398c98957838d8c6381c0c7","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"08624b7206ddb9148eeffc2384ebda2c47b6d1e9","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"9f669a38ca70839229b7ba0f851820850a2fe1f7","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"7352e1d5932a0e777e39fa4b619801191f57e603","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/gs_usb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.16","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.162","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.67","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.7","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/gs_usb.c"]}],"references":["https://git.kernel.org/stable/c/9c151898cc259a7784be60ba38664f42ede39b31","https://git.kernel.org/stable/c/ec5ccc2af9e5b045671f3f604b57512feda8bcc5","https://git.kernel.org/stable/c/f905bcfa971edb89e398c98957838d8c6381c0c7","https://git.kernel.org/stable/c/08624b7206ddb9148eeffc2384ebda2c47b6d1e9","https://git.kernel.org/stable/c/9f669a38ca70839229b7ba0f851820850a2fe1f7","https://git.kernel.org/stable/c/7352e1d5932a0e777e39fa4b619801191f57e603","https://cert-portal.siemens.com/productcert/html/ssa-253495.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23031.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23031","state":"PUBLISHED","datePublished":"2026-01-31T11:42:09.276Z","dateUpdated":"2026-06-02T13:00:52.214Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.942Z"},"containers":{"cna":{"title":"can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak","descriptions":[{"lang":"en","value":"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->rx_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->rx_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->rx_submitted anchor."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"9c151898cc259a7784be60ba38664f42ede39b31","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"ec5ccc2af9e5b045671f3f604b57512feda8bcc5","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"f905bcfa971edb89e398c98957838d8c6381c0c7","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"08624b7206ddb9148eeffc2384ebda2c47b6d1e9","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"9f669a38ca70839229b7ba0f851820850a2fe1f7","versionType":"git"},{"version":"d08e973a77d128b25e01a08c34d89593fdf222da","status":"affected","lessThan":"7352e1d5932a0e777e39fa4b619801191f57e603","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/gs_usb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.16","versionType":"semver"},{"version":"5.15.203","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.162","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.67","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.7","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/can/usb/gs_usb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9c151898cc259a7784be60ba38664f42ede39b31"},{"url":"https://git.kernel.org/stable/c/ec5ccc2af9e5b045671f3f604b57512feda8bcc5"},{"url":"https://git.kernel.org/stable/c/f905bcfa971edb89e398c98957838d8c6381c0c7"},{"url":"https://git.kernel.org/stable/c/08624b7206ddb9148eeffc2384ebda2c47b6d1e9"},{"url":"https://git.kernel.org/stable/c/9f669a38ca70839229b7ba0f851820850a2fe1f7"},{"url":"https://git.kernel.org/stable/c/7352e1d5932a0e777e39fa4b619801191f57e603"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:58:40.032Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"5.15.203"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.1.162"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.6.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.12.67"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.18.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"RUGGEDCOM RST2428P","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V4.0","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-06-02T13:00:52.214Z"},"x_adpType":"supplier"}]}}}