# CVE-2024-50227: thunderbolt: Fix KASAN reported stack out-of-bounds read in tb\_retimer\_scan()

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-11-09T10:14:37.905Z
- **Modified:** 2026-06-17T08:03:55.480Z

## Who should check

- Anyone running Linux \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d; \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< e9e1b20fae7de06ba36dd3f8dba858157bad233d
- Anyone running Linux 6.11

## Description

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

thunderbolt: Fix KASAN reported stack out-of-bounds read in tb\_retimer\_scan()

KASAN reported following issue:

 BUG: KASAN: stack-out-of-bounds in tb\_retimer\_scan+0xffe/0x1550 \[thunderbolt\]
 Read of size 4 at addr ffff88810111fc1c by task kworker/u56:0/11
 CPU: 0 UID: 0 PID: 11 Comm: kworker/u56:0 Tainted: G     U             6.11.0+ \#1387
 Tainted: \[U\]=USER
 Workqueue: thunderbolt0 tb\_handle\_hotplug \[thunderbolt\]
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x6c/0x90
  print\_report+0xd1/0x630
  kasan\_report+0xdb/0x110
  \_\_asan\_report\_load4\_noabort+0x14/0x20
  tb\_retimer\_scan+0xffe/0x1550 \[thunderbolt\]
  tb\_scan\_port+0xa6f/0x2060 \[thunderbolt\]
  tb\_handle\_hotplug+0x17b1/0x3080 \[thunderbolt\]
  process\_one\_work+0x626/0x1100
  worker\_thread+0x6c8/0xfa0
  kthread+0x2c8/0x3a0
  ret\_from\_fork+0x3a/0x80
  ret\_from\_fork\_asm+0x1a/0x30

This happens because the loop variable still gets incremented by one so
max becomes 3 instead of 2, and this makes the second loop read past the
the array declared on the stack.

Fix this by assigning to max directly in the loop body.

## Affected and fixed versions

- Linux: \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d; \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< e9e1b20fae7de06ba36dd3f8dba858157bad233d (cvelist)
- Linux: 6.11 (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-50227. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50227.md
Affected: Linux >= ff6ab055e070d819f51196622e08f8941b6d2a4b, < 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d; >= ff6ab055e070d819f51196622e08f8941b6d2a4b, < e9e1b20fae7de06ba36dd3f8dba858157bad233d; Linux 6.11
Fixed in: Linux 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d

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-50227 being exploited?

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

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

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d; \>= ff6ab055e070d819f51196622e08f8941b6d2a4b, \< e9e1b20fae7de06ba36dd3f8dba858157bad233d; Linux 6.11.

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

Yes. Fixed in Linux 08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d. No fix listed yet: follow the vendor advisory.

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

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/08b2771e9270fbe1ed4fbbe93abe05ac7fe9861d>
- patch: <https://git.kernel.org/stable/c/e9e1b20fae7de06ba36dd3f8dba858157bad233d>

## 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-50227>

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