CVE 7.8 HIGH

procfs: fix missing RCU protection when reading real_parent in do_task_stat()_CVE-2026-46259

7.8 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

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.

Basic Information

ID CVE-2026-46259
Source Linux
Published Jun 3, 2026 at 15:49
Modified Jun 5, 2026 at 06:06

Affected Product

Vendor Linux
Product Linux
Version 06fffb1267c9d986687b69d74a46ee332a50575e
Affected Versions Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 06fffb1267c9d986687b69d74a46ee332a50575e
Linux Linux 2.6.26

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.