# CVE-2024-26622: tomoyo: fix UAF write bug in tomoyo\_write\_control()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-04 · Modified: 2026-05-11
- Aliases: SUSE-SU-2024:1391-1, UBUNTU-CVE-2024-26622, DEBIAN-CVE-2024-26622
- Record: https://cvemate.com/vulnerability/CVE-2024-26622 · JSON: https://cvemate.com/vulnerability/CVE-2024-26622/json

## Description

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

tomoyo: fix UAF write bug in tomoyo_write_control()

Since tomoyo_write_control() updates head->write_buf when write()
of long lines is requested, we need to fetch head->write_buf after
head->io_sem is held.  Otherwise, concurrent write() requests can
cause use-after-free-write and double-free problems.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.238%, percentile 15.866%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 121)

- debian linux (Debian): \< 6.1.82-1 \| \< 6.7.9-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-254.288 \| \< 4.15.0-225.237 \| \< 5.4.0-182.202 \| \< 5.15.0-107.117
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1131.137 \| \< 4.4.0-1169.184 \| \< 4.15.0-1168.181 \| \< 5.4.0-1125.135 \| \< 5.15.0-1062.68
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1062.68~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1125.135~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): \< 6.5.0-1020.20~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2107.113 \| All versions (No fix recorded) \| \< 5.4.0-1125.135+fips1 \| \< 5.15.0-1062.68+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1168.181~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1177.192~14.04.1 \| \< 4.15.0-1177.192~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1130.137 \| \< 5.15.0-1064.73
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1177.192
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <https://git.kernel.org/stable/c/a23ac1788e2c828c097119e9a3178f0b7e503fee>
- <https://git.kernel.org/stable/c/7d930a4da17958f869ef679ee0e4a8729337affc>
- <https://git.kernel.org/stable/c/3bfe04c1273d30b866f4c7c238331ed3b08e5824>
- <https://git.kernel.org/stable/c/2caa605079488da9601099fbda460cfc1702839f>
- <https://git.kernel.org/stable/c/6edefe1b6c29a9932f558a898968a9fcbeec5711>
- <https://git.kernel.org/stable/c/2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVVYSTEVMPYGF6GDSOD44MUXZXAZHOHB/>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20241391-1/>
- <https://bugzilla.suse.com/1220828>
- <https://www.suse.com/security/cve/CVE-2024-26622>
- <https://ubuntu.com/security/CVE-2024-26622>
- <https://git.kernel.org/linus/2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815>
- <https://www.cve.org/CVERecord?id=CVE-2024-26622>
- <https://ubuntu.com/security/notices/USN-6774-1>
- <https://ubuntu.com/security/notices/USN-6775-1>
- <https://ubuntu.com/security/notices/USN-6776-1>
- <https://ubuntu.com/security/notices/USN-6777-1>
- <https://ubuntu.com/security/notices/USN-6778-1>
- <https://ubuntu.com/security/notices/USN-6777-2>

---

Data as of 2026-12-05T04:23:14.952Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
