tomoyo: fix UAF write bug in tomoyo_write_control()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bd03a3e4c9a9df0c6b007045fa7fc8889111a478 · < 2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s tomoyo_write_control() can use a freed buffer when concurrent write() requests contain long lines. An attacker able to make those writes could trigger a use-after-free write or double-free; the input does not specify authentication or further user-interaction requirements.
Engineers running Linux kernels with TOMOYO should check their versions; affected versions are not specified.