{"id":"CVE-2024-26622","summary":"tomoyo: fix UAF write bug in tomoyo_write_control()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntomoyo: fix UAF write bug in tomoyo_write_control()\n\nSince tomoyo_write_control() updates head-\u003ewrite_buf when write()\nof long lines is requested, we need to fetch head-\u003ewrite_buf after\nhead-\u003eio_sem is held.  Otherwise, concurrent write() requests can\ncause use-after-free-write and double-free problems.","modified":"2026-04-02T10:05:08.083156Z","published":"2024-03-04T06:40:01.754Z","related":["SUSE-SU-2024:0855-1","SUSE-SU-2024:0856-1","SUSE-SU-2024:0857-1","SUSE-SU-2024:0858-1","SUSE-SU-2024:0900-1","SUSE-SU-2024:0900-2","SUSE-SU-2024:0910-1","SUSE-SU-2024:0925-1","SUSE-SU-2024:0926-1","SUSE-SU-2024:0975-1","SUSE-SU-2024:0976-1","SUSE-SU-2024:0977-1","SUSE-SU-2024:1358-1","SUSE-SU-2024:1359-1","SUSE-SU-2024:1362-1","SUSE-SU-2024:1364-1","SUSE-SU-2024:1380-1","SUSE-SU-2024:1386-1","SUSE-SU-2024:1388-1","SUSE-SU-2024:1390-1","SUSE-SU-2024:1391-1","SUSE-SU-2024:1405-1","SUSE-SU-2024:1406-1","SUSE-SU-2024:1409-1","SUSE-SU-2024:1410-1","SUSE-SU-2024:1411-1","SUSE-SU-2024:1418-1","SUSE-SU-2024:1558-1","SUSE-SU-2024:1562-1","SUSE-SU-2024:1580-1","SUSE-SU-2024:1582-1","SUSE-SU-2024:1596-1","SUSE-SU-2024:1682-1","SUSE-SU-2024:1711-1","SUSE-SU-2024:1749-1","SUSE-SU-2024:2092-1","SUSE-SU-2024:2162-1","SUSE-SU-2024:2207-1","SUSE-SU-2024:2337-1","SUSE-SU-2024:2446-1","SUSE-SU-2024:2722-1","SUSE-SU-2024:2824-1","SUSE-SU-2024:2850-1","SUSE-SU-2024:3379-1","SUSE-SU-2024:3399-1","SUSE-SU-2024:3631-1","SUSE-SU-2024:3694-1","SUSE-SU-2024:3793-1","SUSE-SU-2024:3829-1","SUSE-SU-2024:3852-1","SUSE-SU-2024:4122-1","SUSE-SU-2024:4218-1","SUSE-SU-2024:4234-1","SUSE-SU-2025:0107-1","SUSE-SU-2025:0158-1","SUSE-SU-2025:0261-1","SUSE-SU-2025:0266-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26622.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2caa605079488da9601099fbda460cfc1702839f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3bfe04c1273d30b866f4c7c238331ed3b08e5824"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6edefe1b6c29a9932f558a898968a9fcbeec5711"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d930a4da17958f869ef679ee0e4a8729337affc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a23ac1788e2c828c097119e9a3178f0b7e503fee"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IVVYSTEVMPYGF6GDSOD44MUXZXAZHOHB/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26622.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26622"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bd03a3e4c9a9df0c6b007045fa7fc8889111a478"},{"fixed":"a23ac1788e2c828c097119e9a3178f0b7e503fee"},{"fixed":"7d930a4da17958f869ef679ee0e4a8729337affc"},{"fixed":"3bfe04c1273d30b866f4c7c238331ed3b08e5824"},{"fixed":"2caa605079488da9601099fbda460cfc1702839f"},{"fixed":"6edefe1b6c29a9932f558a898968a9fcbeec5711"},{"fixed":"2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26622.json"}}],"schema_version":"1.7.5"}