# CVE-2024-26622: tomoyo: fix UAF write bug in tomoyo_write_control()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-04T06:40:01.754Z
- Modified: 2026-06-17T07:17:55.050Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before a23ac1788e2c828c097119e9a3178f0b7e503fee; from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before 7d930a4da17958f869ef679ee0e4a8729337affc; from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before 3bfe04c1273d30b866f4c7c238331ed3b08e5824; from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before 2caa605079488da9601099fbda460cfc1702839f; from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before 6edefe1b6c29a9932f558a898968a9fcbeec5711; from bd03a3e4c9a9df0c6b007045fa7fc8889111a478 before 2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815; 3.1 (not affected: before 3.1; from 5.10.212 up to 5.10.*; from 5.15.151 up to 5.15.*; from 6.1.81 up to 6.1.*; from 6.6.21 up to 6.6.*; from 6.7.9 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 3.1 before 5.10.212; from 5.11 before 5.15.151; from 5.16 before 6.1.81; from 6.2 before 6.6.21; from 6.7 before 6.7.9; 6.8

## References

- <https://git.kernel.org/stable/c/a23ac1788e2c828c097119e9a3178f0b7e503fee> (patch)
- <https://git.kernel.org/stable/c/7d930a4da17958f869ef679ee0e4a8729337affc> (patch)
- <https://git.kernel.org/stable/c/3bfe04c1273d30b866f4c7c238331ed3b08e5824> (patch)
- <https://git.kernel.org/stable/c/2caa605079488da9601099fbda460cfc1702839f> (patch)
- <https://git.kernel.org/stable/c/6edefe1b6c29a9932f558a898968a9fcbeec5711> (patch)
- <https://git.kernel.org/stable/c/2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVVYSTEVMPYGF6GDSOD44MUXZXAZHOHB/>

## Sources

- CVE List: [CVE-2024-26622](https://www.cve.org/CVERecord?id=CVE-2024-26622), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-26622](https://nvd.nist.gov/vuln/detail/CVE-2024-26622), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26622 · Whole record: https://cve.day/CVE-2024-26622.json · Rebuilt by cve.day 2026-11-25T22:58:37.250Z
