CVE-2025-39696
published high CVSS 3.1 · 7.8ALSA: hda: tas2781: Fix wrong reference of tasdevice_priv
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4fe238513407d83f38bf5782e8bcdd7b8baeb85d to < 2812815aa79637d39d4398ecd7e58f65d1c79231 · 4fe238513407d83f38bf5782e8bcdd7b8baeb85d to < 3f4422e7c9436abf81a00270be7e4d6d3760ec0e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.16.4 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: tas2781: Fix wrong reference of tasdevice_priv During the conversion to unify the calibration data management, the reference to tasdevice_priv was wrongly set to h->hda_priv instead of h->priv. This resulted in memory corruption and crashes eventually. Unfortunately it's a void pointer, hence the compiler couldn't know that it's wrong.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The corruption occurs in the tas2781 HDA I2C codec driver's firmware-ready callback during local driver bind; there is no network, adjacent-network, or peer-supplied data path into `tas2563_save_calibration()`. Exploiting the resulting kernel heap corruption requires local presence on the affected machine. AC:L - The wrong pointer is dereferenced unconditionally every time `tasdev_fw_ready()` runs on a TAS2563 (ACPI HID INT8866) system — no race, no timing window, and no memory-layout precondition the attacker cannot influence. The driver is enabled in stock distro kernels and the hardware is common in consumer Lenovo laptops, so this is not a rare-config case. PR:L - No capability, credential, or privilege check exists anywhere on the path — the corruption fires from a kernel firmware-load worker at boot, before any authentication. A plain unprivileged local account on the affected system is sufficient to be positioned to leverage the resulting heap damage, so Low rather than High. UI:N - The vulnerable code is reached automatically from the asynchronous `request_firmware_nowait()` completion callback during device probe/bind; no victim must log in, mount anything, open a device node, or take any other action. S:U - The type confusion corrupts kernel heap memory belonging to the same kernel that hosts the vulnerable driver, with no crossing of a VM, IOMMU, or sandbox boundary. Impact and vulnerable component share one security authority. C:H - The function performs OOB reads of `p->dev` and `p->ndev` hundreds/thousands of bytes past a 24-byte allocation and writes a live kernel heap pointer (`cd->data`) into an unrelated adjacent object, which can surface kernel addresses to userspace and defeat KASLR. Heap corruption of this kind is leverageable into broader memory disclosure. I:H - This is an out-of-bounds write: `cali_dat_sz_per_dev`, `total_sz`, `data`, and the five `cali_reg` fields are written ~790–810 bytes beyond the object, and `devm_kzalloc()` performs a list insertion through an uncontrolled `struct device *`, giving a write through a wild pointer. OOB write plus type confusion is High integrity impact under the standard treatment. A:H - The maintainer explicitly states this "resulted in memory corruption and crashes eventually"; dereferencing the garbage `p->dev` inside `devm_kzalloc()` (spinlock acquisition and list_add at an arbitrary address) reliably produces an oops or panic, and the corrupted neighbouring heap objects cause later crashes. Any kernel crash is High.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4fe238513407d83f38bf5782e8bcdd7b8baeb85d to < 2812815aa79637d39d4398ecd7e58f65d1c79231 (affected · git)4fe238513407d83f38bf5782e8bcdd7b8baeb85d to < 3f4422e7c9436abf81a00270be7e4d6d3760ec0e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.16.4 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
ALSA: hda: tas2781: Fix wrong reference of tasdevice_priv
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 308268af1ac0f2bceffe1bf24358dbd2e2326e3b029d49d0fc9dd043e1452110
- Ingested
- 23 Sep 2026, 08:47:06 UTC
- Source record
- Official CVE record