# CVE-2024-56788: net: ethernet: oa\_tc6: fix tx skb race condition between reference pointers

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.41% (percentile 27, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2025-01-11T12:35:47.985Z
- **Modified:** 2026-08-05T11:46:29.921Z

## Who should check

- Anyone running Linux \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775; \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< e592b5110b3e9393881b0a019d86832bbf71a47f
- Anyone running Linux 6.12

## Description

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

net: ethernet: oa\_tc6: fix tx skb race condition between reference pointers

There are two skb pointers to manage tx skb's enqueued from n/w stack.
waiting\_tx\_skb pointer points to the tx skb which needs to be processed
and ongoing\_tx\_skb pointer points to the tx skb which is being processed.

SPI thread prepares the tx data chunks from the tx skb pointed by the
ongoing\_tx\_skb pointer. When the tx skb pointed by the ongoing\_tx\_skb is
processed, the tx skb pointed by the waiting\_tx\_skb is assigned to
ongoing\_tx\_skb and the waiting\_tx\_skb pointer is assigned with NULL.
Whenever there is a new tx skb from n/w stack, it will be assigned to
waiting\_tx\_skb pointer if it is NULL. Enqueuing and processing of a tx skb
handled in two different threads.

Consider a scenario where the SPI thread processed an ongoing\_tx\_skb and
it moves next tx skb from waiting\_tx\_skb pointer to ongoing\_tx\_skb pointer
without doing any NULL check. At this time, if the waiting\_tx\_skb pointer
is NULL then ongoing\_tx\_skb pointer is also assigned with NULL. After
that, if a new tx skb is assigned to waiting\_tx\_skb pointer by the n/w
stack and there is a chance to overwrite the tx skb pointer with NULL in
the SPI thread. Finally one of the tx skb will be left as unhandled,
resulting packet missing and memory leak.

- Consider the below scenario where the TXC reported from the previous
transfer is 10 and ongoing\_tx\_skb holds an tx ethernet frame which can be
transported in 20 TXCs and waiting\_tx\_skb is still NULL.
	tx\_credits = 10; /\* 21 are filled in the previous transfer \*/
	ongoing\_tx\_skb = 20;
	waiting\_tx\_skb = NULL; /\* Still NULL \*/
- So, (tc6-\>ongoing\_tx\_skb \|\| tc6-\>waiting\_tx\_skb) becomes true.
- After oa\_tc6\_prepare\_spi\_tx\_buf\_for\_tx\_skbs()
	ongoing\_tx\_skb = 10;
	waiting\_tx\_skb = NULL; /\* Still NULL \*/
- Perform SPI transfer.
- Process SPI rx buffer to get the TXC from footers.
- Now let's assume previously filled 21 TXCs are freed so we are good to
transport the next remaining 10 tx chunks from ongoing\_tx\_skb.
	tx\_credits = 21;
	ongoing\_tx\_skb = 10;
	waiting\_tx\_skb = NULL;
- So, (tc6-\>ongoing\_tx\_skb \|\| tc6-\>waiting\_tx\_skb) becomes true again.
- In the oa\_tc6\_prepare\_spi\_tx\_buf\_for\_tx\_skbs()
	ongoing\_tx\_skb = NULL;
	waiting\_tx\_skb = NULL;

- Now the below bad case might happen,

Thread1 (oa\_tc6\_start\_xmit)	Thread2 (oa\_tc6\_spi\_thread\_handler)
---------------------------	-----------------------------------
- if waiting\_tx\_skb is NULL
				- if ongoing\_tx\_skb is NULL
				- ongoing\_tx\_skb = waiting\_tx\_skb
- waiting\_tx\_skb = skb
				- waiting\_tx\_skb = NULL
				...
				- ongoing\_tx\_skb = NULL
- if waiting\_tx\_skb is NULL
- waiting\_tx\_skb = skb

To overcome the above issue, protect the moving of tx skb reference from
waiting\_tx\_skb pointer to ongoing\_tx\_skb pointer and assigning new tx skb
to waiting\_tx\_skb pointer, so that the other thread can't access the
waiting\_tx\_skb pointer until the current thread completes moving the tx
skb reference safely.

## Affected and fixed versions

- Linux: \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775; \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< e592b5110b3e9393881b0a019d86832bbf71a47f (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56788.md
Affected: Linux >= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, < 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775; >= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, < e592b5110b3e9393881b0a019d86832bbf71a47f; Linux 6.12
Fixed in: Linux 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775

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-2024-56788 being exploited?

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

### How serious is CVE-2024-56788?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-56788?

Linux \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775; \>= 53fbde8ab21e8c2c6187159cc17fc10cbf20900a, \< e592b5110b3e9393881b0a019d86832bbf71a47f; Linux 6.12.

### Is there a fix for CVE-2024-56788?

Yes. Fixed in Linux 1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-56788?

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/1f2eb6c32bae04b375bb7a0aedbeefb6dbbcb775>
- patch: <https://git.kernel.org/stable/c/e592b5110b3e9393881b0a019d86832bbf71a47f>

## 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-2024-56788>

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