# CVE-2023-53523: can: gs\_usb: fix time stamp counter initialization

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-01T11:46:09.632Z
- **Modified:** 2026-11-05T21:17:24.710Z

## Who should check

- Anyone running Linux \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 7d470bb955210eb7d31f14427b48058487d42355; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 210a8cffc9c1b044281c0a868485c870c9c11374; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 5886e4d5ecec3e22844efed90b2dd383ef804b3a
- Anyone running Linux 6.1

## Description

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

can: gs\_usb: fix time stamp counter initialization

If the gs\_usb device driver is unloaded (or unbound) before the
interface is shut down, the USB stack first calls the struct
usb\_driver::disconnect and then the struct net\_device\_ops::ndo\_stop
callback.

In gs\_usb\_disconnect() all pending bulk URBs are killed, i.e. no more
RX'ed CAN frames are send from the USB device to the host. Later in
gs\_can\_close() a reset control message is send to each CAN channel to
remove the controller from the CAN bus. In this race window the USB
device can still receive CAN frames from the bus and internally queue
them to be send to the host.

At least in the current version of the candlelight firmware, the queue
of received CAN frames is not emptied during the reset command. After
loading (or binding) the gs\_usb driver, new URBs are submitted during
the struct net\_device\_ops::ndo\_open callback and the candlelight
firmware starts sending its already queued CAN frames to the host.

However, this scenario was not considered when implementing the
hardware timestamp function. The cycle counter/time counter
infrastructure is set up (gs\_usb\_timestamp\_init()) after the USBs are
submitted, resulting in a NULL pointer dereference if
timecounter\_cyc2time() (via the call chain:
gs\_usb\_receive\_bulk\_callback() -\> gs\_usb\_set\_timestamp() -\>
gs\_usb\_skb\_set\_timestamp()) is called too early.

Move the gs\_usb\_timestamp\_init() function before the URBs are
submitted to fix this problem.

For a comprehensive solution, we need to consider gs\_usb devices with
more than 1 channel. The cycle counter/time counter infrastructure is
setup per channel, but the RX URBs are per device. Once gs\_can\_open()
of \_a\_ channel has been called, and URBs have been submitted, the
gs\_usb\_receive\_bulk\_callback() can be called for \_all\_ available
channels, even for channels that are not running, yet. As cycle
counter/time counter has not set up, this will again lead to a NULL
pointer dereference.

Convert the cycle counter/time counter from a "per channel" to a "per
device" functionality. Also set it up, before submitting any URBs to
the device.

Further in gs\_usb\_receive\_bulk\_callback(), don't process any URBs for
not started CAN channels, only resubmit the URB.

## Affected and fixed versions

- Linux: \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 7d470bb955210eb7d31f14427b48058487d42355; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 210a8cffc9c1b044281c0a868485c870c9c11374; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 5886e4d5ecec3e22844efed90b2dd383ef804b3a (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 5886e4d5ecec3e22844efed90b2dd383ef804b3a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53523. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53523.md
Affected: Linux >= 45dfa45f52e66f8eee30a64b16550a9c47915044, < 7d470bb955210eb7d31f14427b48058487d42355; >= 45dfa45f52e66f8eee30a64b16550a9c47915044, < 210a8cffc9c1b044281c0a868485c870c9c11374; >= 45dfa45f52e66f8eee30a64b16550a9c47915044, < 5886e4d5ecec3e22844efed90b2dd383ef804b3a; Linux 6.1
Fixed in: Linux 7d470bb955210eb7d31f14427b48058487d42355, Linux 210a8cffc9c1b044281c0a868485c870c9c11374, Linux 5886e4d5ecec3e22844efed90b2dd383ef804b3a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53523 being exploited?

There is no confirmed exploitation: CVE-2023-53523 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53523?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53523?

Linux \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 7d470bb955210eb7d31f14427b48058487d42355; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 210a8cffc9c1b044281c0a868485c870c9c11374; \>= 45dfa45f52e66f8eee30a64b16550a9c47915044, \< 5886e4d5ecec3e22844efed90b2dd383ef804b3a; Linux 6.1.

### Is there a fix for CVE-2023-53523?

Yes. Fixed in Linux 7d470bb955210eb7d31f14427b48058487d42355, Linux 210a8cffc9c1b044281c0a868485c870c9c11374, Linux 5886e4d5ecec3e22844efed90b2dd383ef804b3a. Upgrade Linux to 5886e4d5ecec3e22844efed90b2dd383ef804b3a or later.

### How do I check if I'm affected by CVE-2023-53523?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/210a8cffc9c1b044281c0a868485c870c9c11374>
- patch: <https://git.kernel.org/stable/c/5886e4d5ecec3e22844efed90b2dd383ef804b3a>
- other: <https://git.kernel.org/stable/c/7d470bb955210eb7d31f14427b48058487d42355>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53523>

HTML: <https://flawdb.com/CVE-2023-53523> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53523>
