Linux
procfs: fix missing RCU protection when reading real_parent in do_task_stat()
In the Linux kernel, the following vulnerability has been resolved: procfs: fix missing RCU protection when reading real_parent in do_task_stat() When reading /proc/[pid]/stat, do_task_stat() accesses task->real_parent without proper RCU protection, which leads to: cpu 0 cpu 1 ----- ----- do_task_stat var = task->real_parent release_task call_rcu(delayed_put_task_struct) task_tgid_nr_ns(var) rcu_read_lock <--- Too late to protect task->real_parent! task_pid_ptr <--- UAF! rcu_read_unlock This patch uses task_ppid_nr_ns() instead of task_tgid_nr_ns() to add proper RCU protection for accessing task->real_parent.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < fefa0fcd78be465b7ad4c497fa6ec90d64194c04
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < c93a33f28f915d446eea6fb3f0e1def0b3af1982
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < 1c8dc5b5517546c68ffae40b948336122bb61306
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < 0e64bd46a04a4fd61279aca9f53a664e9e5f7e7e
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < 73ec7c96601d61d52310c659145bb06d933a0fa6
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < 4f9ae386861e280b7631ca252f798d25575627ee
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < dd8b13cb4ff1a4545a214ed897fdf2bc341155b6
- >= 06fffb1267c9d986687b69d74a46ee332a50575e, < 76149d53502cf17ef3ae454ff384551236fba867
Fixed in fefa0fcd78be465b7ad4c497fa6ec90d64194c04, c93a33f28f915d446eea6fb3f0e1def0b3af1982, 1c8dc5b5517546c68ffae40b948336122bb61306, 0e64bd46a04a4fd61279aca9f53a664e9e5f7e7e, 73ec7c96601d61d52310c659145bb06d933a0fa6, 4f9ae386861e280b7631ca252f798d25575627ee, dd8b13cb4ff1a4545a214ed897fdf2bc341155b6, 76149d53502cf17ef3ae454ff384551236fba867
- 2.6.26
Fixed in 0, 5.10.252, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to fefa0fcd78be465b7ad4c497fa6ec90d64194c04 or c93a33f28f915d446eea6fb3f0e1def0b3af1982 or 1c8dc5b5517546c68ffae40b948336122bb61306 or 0e64bd46a04a4fd61279aca9f53a664e9e5f7e7e or 73ec7c96601d61d52310c659145bb06d933a0fa6 or 4f9ae386861e280b7631ca252f798d25575627ee or dd8b13cb4ff1a4545a214ed897fdf2bc341155b6 or 76149d53502cf17ef3ae454ff384551236fba867 or later.
Upgrade Linux to 0 or 5.10.252 or 5.15.202 or 6.1.165 or 6.6.128 or 6.12.75 or 6.18.14 or 6.19.4 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.