# CVE-2023-52858: clk: mediatek: clk-mt7629: Add check for mtk\_alloc\_clk\_data

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

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-21T15:31:51.891Z
- **Modified:** 2026-06-17T06:43:45.117Z

## Who should check

- Anyone running Linux \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e8ae4b49dd9cfde69d8de8c0c0cd7cf1b004482e; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 4f861b63945e076f9f003a5fad958174096df1ee; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e964d21dc034b650d719c4ea39564bec72b42f94; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< a836efc21ef04608333d6d05753e558ebd1f85d0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 1d89430fc3158f872d492f1b88d07262f48290c0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 5fbea47eebff5daeca7d918c99289bcd3ae4dc8d; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 2befa515c1bb6cdd33c262b909d93d1973a219aa
- Anyone running Linux 5.0

## Description

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

clk: mediatek: clk-mt7629: Add check for mtk\_alloc\_clk\_data

Add the check for the return value of mtk\_alloc\_clk\_data() in order to
avoid NULL pointer dereference.

## Affected and fixed versions

- Linux: \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e8ae4b49dd9cfde69d8de8c0c0cd7cf1b004482e; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 4f861b63945e076f9f003a5fad958174096df1ee; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e964d21dc034b650d719c4ea39564bec72b42f94; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< a836efc21ef04608333d6d05753e558ebd1f85d0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 1d89430fc3158f872d492f1b88d07262f48290c0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 5fbea47eebff5daeca7d918c99289bcd3ae4dc8d; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 2befa515c1bb6cdd33c262b909d93d1973a219aa (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 2befa515c1bb6cdd33c262b909d93d1973a219aa 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-52858. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52858.md
Affected: Linux >= 3b5e748615e714711220b2a95d19bd25a037db09, < e8ae4b49dd9cfde69d8de8c0c0cd7cf1b004482e; >= 3b5e748615e714711220b2a95d19bd25a037db09, < 4f861b63945e076f9f003a5fad958174096df1ee; >= 3b5e748615e714711220b2a95d19bd25a037db09, < e964d21dc034b650d719c4ea39564bec72b42f94; >= 3b5e748615e714711220b2a…
Fixed in: Linux 4f861b63945e076f9f003a5fad958174096df1ee, Linux 1d89430fc3158f872d492f1b88d07262f48290c0, Linux 5fbea47eebff5daeca7d918c99289bcd3ae4dc8d, Linux 2befa515c1bb6cdd33c262b909d93d1973a219aa

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

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

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

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

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

Linux \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e8ae4b49dd9cfde69d8de8c0c0cd7cf1b004482e; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 4f861b63945e076f9f003a5fad958174096df1ee; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< e964d21dc034b650d719c4ea39564bec72b42f94; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< a836efc21ef04608333d6d05753e558ebd1f85d0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 1d89430fc3158f872d492f1b88d07262f48290c0; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 5fbea47eebff5daeca7d918c99289bcd3ae4dc8d; \>= 3b5e748615e714711220b2a95d19bd25a037db09, \< 2befa515c1bb6cdd33c262b909d93d1973a219aa; Linux 5.0.

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

Yes. Fixed in Linux 4f861b63945e076f9f003a5fad958174096df1ee, Linux 1d89430fc3158f872d492f1b88d07262f48290c0, Linux 5fbea47eebff5daeca7d918c99289bcd3ae4dc8d, Linux 2befa515c1bb6cdd33c262b909d93d1973a219aa. Upgrade Linux to 2befa515c1bb6cdd33c262b909d93d1973a219aa or later.

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

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/e8ae4b49dd9cfde69d8de8c0c0cd7cf1b004482e>
- patch: <https://git.kernel.org/stable/c/4f861b63945e076f9f003a5fad958174096df1ee>
- patch: <https://git.kernel.org/stable/c/e964d21dc034b650d719c4ea39564bec72b42f94>
- patch: <https://git.kernel.org/stable/c/a836efc21ef04608333d6d05753e558ebd1f85d0>
- patch: <https://git.kernel.org/stable/c/1d89430fc3158f872d492f1b88d07262f48290c0>
- patch: <https://git.kernel.org/stable/c/5fbea47eebff5daeca7d918c99289bcd3ae4dc8d>
- patch: <https://git.kernel.org/stable/c/2befa515c1bb6cdd33c262b909d93d1973a219aa>

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

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