# CVE-2024-46849: ASoC: meson: axg-card: fix 'use-after-free'

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-09-27T12:42:43.316Z
- **Modified:** 2026-06-17T07:56:04.630Z

## Who should check

- Anyone running Linux \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< a33145f494e6cb82f3e018662cc7c4febf271f22; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 5a2cc2bb81399e9ebc72560541137eb04d61dc3d; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< fb0530025d502cb79d2b2801b14a9d5261833f1a; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e1a199ec31617242e1a0ea8f312341e682d0c037; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e43364f578cdc2f8083abbc0cb743ea55e827c29; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 7d318166bf55e9029d56997c3b134f4ac2ae2607; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 4f9a71435953f941969a4f017e2357db62d85a86
- Anyone running Linux 4.19

## Description

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

ASoC: meson: axg-card: fix 'use-after-free'

Buffer 'card-\>dai\_link' is reallocated in 'meson\_card\_reallocate\_links()',
so move 'pad' pointer initialization after this function when memory is
already reallocated.

Kasan bug report:

==================================================================
BUG: KASAN: slab-use-after-free in axg\_card\_add\_link+0x76c/0x9bc
Read of size 8 at addr ffff000000e8b260 by task modprobe/356

CPU: 0 PID: 356 Comm: modprobe Tainted: G O 6.9.12-sdkernel \#1
Call trace:
 dump\_backtrace+0x94/0xec
 show\_stack+0x18/0x24
 dump\_stack\_lvl+0x78/0x90
 print\_report+0xfc/0x5c0
 kasan\_report+0xb8/0xfc
 \_\_asan\_load8+0x9c/0xb8
 axg\_card\_add\_link+0x76c/0x9bc \[snd\_soc\_meson\_axg\_sound\_card\]
 meson\_card\_probe+0x344/0x3b8 \[snd\_soc\_meson\_card\_utils\]
 platform\_probe+0x8c/0xf4
 really\_probe+0x110/0x39c
 \_\_driver\_probe\_device+0xb8/0x18c
 driver\_probe\_device+0x108/0x1d8
 \_\_driver\_attach+0xd0/0x25c
 bus\_for\_each\_dev+0xe0/0x154
 driver\_attach+0x34/0x44
 bus\_add\_driver+0x134/0x294
 driver\_register+0xa8/0x1e8
 \_\_platform\_driver\_register+0x44/0x54
 axg\_card\_pdrv\_init+0x20/0x1000 \[snd\_soc\_meson\_axg\_sound\_card\]
 do\_one\_initcall+0xdc/0x25c
 do\_init\_module+0x10c/0x334
 load\_module+0x24c4/0x26cc
 init\_module\_from\_file+0xd4/0x128
 \_\_arm64\_sys\_finit\_module+0x1f4/0x41c
 invoke\_syscall+0x60/0x188
 el0\_svc\_common.constprop.0+0x78/0x13c
 do\_el0\_svc+0x30/0x40
 el0\_svc+0x38/0x78
 el0t\_64\_sync\_handler+0x100/0x12c
 el0t\_64\_sync+0x190/0x194

## Affected and fixed versions

- Linux: \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< a33145f494e6cb82f3e018662cc7c4febf271f22; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 5a2cc2bb81399e9ebc72560541137eb04d61dc3d; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< fb0530025d502cb79d2b2801b14a9d5261833f1a; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e1a199ec31617242e1a0ea8f312341e682d0c037; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e43364f578cdc2f8083abbc0cb743ea55e827c29; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 7d318166bf55e9029d56997c3b134f4ac2ae2607; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 4f9a71435953f941969a4f017e2357db62d85a86 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 4f9a71435953f941969a4f017e2357db62d85a86 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46849.md
Affected: Linux >= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, < a33145f494e6cb82f3e018662cc7c4febf271f22; >= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, < 5a2cc2bb81399e9ebc72560541137eb04d61dc3d; >= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, < fb0530025d502cb79d2b2801b14a9d5261833f1a; >= 7864a79f37b55769b817d5e…
Fixed in: Linux 5a2cc2bb81399e9ebc72560541137eb04d61dc3d, Linux 7d318166bf55e9029d56997c3b134f4ac2ae2607, Linux 4f9a71435953f941969a4f017e2357db62d85a86

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

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

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

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

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

Linux \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< a33145f494e6cb82f3e018662cc7c4febf271f22; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 5a2cc2bb81399e9ebc72560541137eb04d61dc3d; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< fb0530025d502cb79d2b2801b14a9d5261833f1a; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e1a199ec31617242e1a0ea8f312341e682d0c037; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< e43364f578cdc2f8083abbc0cb743ea55e827c29; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 7d318166bf55e9029d56997c3b134f4ac2ae2607; \>= 7864a79f37b55769b817d5e6c5ae0ca4bfdba93b, \< 4f9a71435953f941969a4f017e2357db62d85a86; Linux 4.19.

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

Yes. Fixed in Linux 5a2cc2bb81399e9ebc72560541137eb04d61dc3d, Linux 7d318166bf55e9029d56997c3b134f4ac2ae2607, Linux 4f9a71435953f941969a4f017e2357db62d85a86. Upgrade Linux to 4f9a71435953f941969a4f017e2357db62d85a86 or later.

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

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/a33145f494e6cb82f3e018662cc7c4febf271f22>
- patch: <https://git.kernel.org/stable/c/5a2cc2bb81399e9ebc72560541137eb04d61dc3d>
- patch: <https://git.kernel.org/stable/c/fb0530025d502cb79d2b2801b14a9d5261833f1a>
- patch: <https://git.kernel.org/stable/c/e1a199ec31617242e1a0ea8f312341e682d0c037>
- patch: <https://git.kernel.org/stable/c/e43364f578cdc2f8083abbc0cb743ea55e827c29>
- patch: <https://git.kernel.org/stable/c/7d318166bf55e9029d56997c3b134f4ac2ae2607>
- patch: <https://git.kernel.org/stable/c/4f9a71435953f941969a4f017e2357db62d85a86>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

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

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