# CVE-2026-139742: dmaengine: sun6i-dma: Fix use-after-free in error handling paths

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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)
- **Published:** 2026-11-30T13:37:33.350Z
- **Modified:** 2026-12-01T06:17:48.333Z

## Who should check

- Anyone running Linux \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 33df8996d07f9cce03267b9a82b5fc6be639be24; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8bd642fa60620eb9cfadb1325d97114cf0740ba9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 23225f80c21290a5c74ce668208d0e99074f70e4; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< a521cd3421e69c3c3fe69d24f393bd791c04b21d; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8018040c732dbf5fa2af4b63d809b5a269b4d23c; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 67045b9cd61abc008223580e652f87d46239918f; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< f472919f4c0650d7fb22bb230eacaada0c6ee951
- Anyone running Linux 3.17

## Description

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

dmaengine: sun6i-dma: Fix use-after-free in error handling paths

In error handling paths, the for loop frees v\_lli in the loop body,
then accesses v\_lli-\>v\_lli\_next and v\_lli-\>p\_lli\_next in the
increment expression, which is use-after-free.

Fix by refactoring the cleanup into a helper function sun6i\_dma\_free\_desc()
that saves both the next virtual and physical pointers before freeing the
current node, preventing the use-after-free.

## Affected and fixed versions

- Linux: \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 33df8996d07f9cce03267b9a82b5fc6be639be24; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8bd642fa60620eb9cfadb1325d97114cf0740ba9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 23225f80c21290a5c74ce668208d0e99074f70e4; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< a521cd3421e69c3c3fe69d24f393bd791c04b21d; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8018040c732dbf5fa2af4b63d809b5a269b4d23c; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 67045b9cd61abc008223580e652f87d46239918f; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< f472919f4c0650d7fb22bb230eacaada0c6ee951 (cvelist)
- Linux: 3.17 (cvelist)

## Technologies

Linux kernel

## 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-2026-139742. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139742.md
Affected: Linux >= 555859308723d8d5b828304f5eb9281143fd86b5, < 33df8996d07f9cce03267b9a82b5fc6be639be24; >= 555859308723d8d5b828304f5eb9281143fd86b5, < 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9; >= 555859308723d8d5b828304f5eb9281143fd86b5, < 8bd642fa60620eb9cfadb1325d97114cf0740ba9; >= 555859308723d8d5b828304…
Fixed in: Linux 33df8996d07f9cce03267b9a82b5fc6be639be24, Linux 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9, Linux 8bd642fa60620eb9cfadb1325d97114cf0740ba9, Linux 23225f80c21290a5c74ce668208d0e99074f70e4, Linux 8018040c732dbf5fa2af4b63d809b5a269b4d23c, Linux 67045b9cd61abc008223580e652f87d46239918f

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-2026-139742 being exploited?

There is no confirmed exploitation: CVE-2026-139742 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139742?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-139742?

Linux \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 33df8996d07f9cce03267b9a82b5fc6be639be24; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8bd642fa60620eb9cfadb1325d97114cf0740ba9; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 23225f80c21290a5c74ce668208d0e99074f70e4; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< a521cd3421e69c3c3fe69d24f393bd791c04b21d; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 8018040c732dbf5fa2af4b63d809b5a269b4d23c; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< 67045b9cd61abc008223580e652f87d46239918f; \>= 555859308723d8d5b828304f5eb9281143fd86b5, \< f472919f4c0650d7fb22bb230eacaada0c6ee951; Linux 3.17.

### Is there a fix for CVE-2026-139742?

Yes. Fixed in Linux 33df8996d07f9cce03267b9a82b5fc6be639be24, Linux 8f7cc77013a4081fa23f1f28cbfa5499d1f412c9, Linux 8bd642fa60620eb9cfadb1325d97114cf0740ba9, Linux 23225f80c21290a5c74ce668208d0e99074f70e4, Linux 8018040c732dbf5fa2af4b63d809b5a269b4d23c, Linux 67045b9cd61abc008223580e652f87d46239918f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139742?

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

- other: <https://git.kernel.org/stable/c/33df8996d07f9cce03267b9a82b5fc6be639be24>
- other: <https://git.kernel.org/stable/c/8f7cc77013a4081fa23f1f28cbfa5499d1f412c9>
- other: <https://git.kernel.org/stable/c/8bd642fa60620eb9cfadb1325d97114cf0740ba9>
- other: <https://git.kernel.org/stable/c/23225f80c21290a5c74ce668208d0e99074f70e4>
- other: <https://git.kernel.org/stable/c/a521cd3421e69c3c3fe69d24f393bd791c04b21d>
- other: <https://git.kernel.org/stable/c/8018040c732dbf5fa2af4b63d809b5a269b4d23c>
- other: <https://git.kernel.org/stable/c/67045b9cd61abc008223580e652f87d46239918f>
- other: <https://git.kernel.org/stable/c/f472919f4c0650d7fb22bb230eacaada0c6ee951>

## 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-2026-139742>

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