CVE-2026-23031

can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak

No CVSS score yet EPSS 0.22%

Published 31 Jan 2026 Updated 2 Jun 2026 CNA: Linux

Check your servers for CVE-2026-23031

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23031 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak

In gs_can_open(), the URBs for USB-in transfers are allocated, added to the parent->rx_submitted anchor and submitted. In the complete callback gs_usb_receive_bulk_callback(), the URB is processed and resubmitted. In gs_can_close() the URBs are freed by calling usb_kill_anchored_urbs(parent->rx_submitted).

However, this does not take into account that the USB framework unanchors the URB before the complete function is called. This means that once an in-URB has been completed, it is no longer anchored and is ultimately not released in gs_can_close().

Fix the memory leak by anchoring the URB in the gs_usb_receive_bulk_callback() to the parent->rx_submitted anchor.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 9c151898cc259a7784be60ba38664f42ede39b31
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before ec5ccc2af9e5b045671f3f604b57512feda8bcc5
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before f905bcfa971edb89e398c98957838d8c6381c0c7
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 08624b7206ddb9148eeffc2384ebda2c47b6d1e9
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 9f669a38ca70839229b7ba0f851820850a2fe1f7
affected from d08e973a77d128b25e01a08c34d89593fdf222da, before 7352e1d5932a0e777e39fa4b619801191f57e603
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.162 up to and including 6.1.*
unaffected from 6.6.122 up to and including 6.6.*
unaffected from 6.12.67 up to and including 6.12.*
unaffected from 6.18.7 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23031 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23031

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-23031
trivy image --scanners vuln IMAGE | grep CVE-2026-23031

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-23031 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.