Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-53193

HIGH 7.8EPSS 17%

clk: clk-loongson2: Fix memory corruption bug in struct loongson2_clk_provider

Mitigation

  • Upgrade Linux to 6e4bf018bb040955da53dae9f8628ef8fcec2dbe or later.

Who should check

  • Anyone running Linux >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 76918202615f2ba7deda14901d9fff528a180099; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 145de18065b9840687d9b4e63746238c1da25d22; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 6e4bf018bb040955da53dae9f8628ef8fcec2dbe
  • Anyone running Linux 6.10

Vulnerability facts

Affected
Linux >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 76918202615f2ba7deda14901d9fff528a180099; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 145de18065b9840687d9b4e63746238c1da25d22; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 6e4bf018bb040955da53dae9f8628ef8fcec2dbe; Linux 6.10
Fixed in
Linux 76918202615f2ba7deda14901d9fff528a180099, Linux 145de18065b9840687d9b4e63746238c1da25d22, Linux 6e4bf018bb040955da53dae9f8628ef8fcec2dbe
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: clk: clk-loongson2: Fix memory corruption bug in struct loongson2_clk_provider Some heap space is allocated for the flexible structure `struct clk_hw_onecell_data` and its flexible-array member `hws` through the composite structure `struct loongson2_clk_provider` in function `loongson2_clk_probe()`, as shown below: 289 struct loongson2_clk_provider *clp; ... 296 for (p = data; p->name; p++) 297 clks_num++; 298 299 clp = devm_kzalloc(dev, struct_size(clp, clk_data.hws, clks_num), 300 GFP_KERNEL); Then some data is written into the flexible array: 350 clp->clk_data.hws[p->id] = hw; This corrupts `clk_lock`, which is the spinlock variable immediately following the `clk_data` member in `struct loongson2_clk_provider`: struct loongson2_clk_provider { void __iomem *base; struct device *dev; struct clk_hw_onecell_data clk_data; spinlock_t clk_lock; /* protect access to DIV registers */ }; The problem is that the flexible structure is currently placed in the middle of `struct loongson2_clk_provider` instead of at the end. Fix this by moving `struct clk_hw_onecell_data clk_data;` to the end of `struct loongson2_clk_provider`. Also, add a code comment to help prevent this from happening again in case new members are added to the structure in the future. This change also fixes the following -Wflex-array-member-not-at-end warning: drivers/clk/clk-loongson2.c:32:36: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 76918202615f2ba7deda14901d9fff528a180099; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 145de18065b9840687d9b4e63746238c1da25d22; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 6e4bf018bb040955da53dae9f8628ef8fcec2dbe—cvelist
Linux6.10—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2024-53193.md
Affected: Linux >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 76918202615f2ba7deda14901d9fff528a180099; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 145de18065b9840687d9b4e63746238c1da25d22; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 6e4bf018bb040955da53dae9f8628ef8fcec2dbe; Linux 6.10
Fixed in: Linux 76918202615f2ba7deda14901d9fff528a180099, Linux 145de18065b9840687d9b4e63746238c1da25d22, Linux 6e4bf018bb040955da53dae9f8628ef8fcec2dbe

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.

References

FAQ

Is CVE-2024-53193 being exploited?

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

How serious is CVE-2024-53193?

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

Which versions are affected by CVE-2024-53193?

Linux >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 76918202615f2ba7deda14901d9fff528a180099; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 145de18065b9840687d9b4e63746238c1da25d22; >= 9796ec0bd04bb0e70487127d44949ca0554df5d3, < 6e4bf018bb040955da53dae9f8628ef8fcec2dbe; Linux 6.10.

Is there a fix for CVE-2024-53193?

Yes. Fixed in Linux 76918202615f2ba7deda14901d9fff528a180099, Linux 145de18065b9840687d9b4e63746238c1da25d22, Linux 6e4bf018bb040955da53dae9f8628ef8fcec2dbe. Upgrade Linux to 6e4bf018bb040955da53dae9f8628ef8fcec2dbe or later.

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

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.

Sponsors