{"id":"CVE-2024-57934","published":"2025-01-21T12:01:30Z","modified":"2026-05-11T21:00:57Z","title":"fgraph: Add READ_ONCE() when accessing fgraph_array[]","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfgraph: Add READ_ONCE() when accessing fgraph_array[]\n\nIn __ftrace_return_to_handler(), a loop iterates over the fgraph_array[]\nelements, which are fgraph_ops. The loop checks if an element is a\nfgraph_stub to prevent using a fgraph_stub afterward.\n\nHowever, if the compiler reloads fgraph_array[] after this check, it might\nrace with an update to fgraph_array[] that introduces a fgraph_stub. This\ncould result in the stub being processed, but the stub contains a null\n\"func_hash\" field, leading to a NULL pointer dereference.\n\nTo ensure that the gops compared against the fgraph_stub matches the gops\nprocessed later, add a READ_ONCE(). A similar patch appears in commit\n63a8dfb (\"function_graph: Add READ_ONCE() when accessing fgraph_array[]\").","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0017,"percentile":0.06567,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/b68b2a3fbacc7be720ef589d489bcacdd05c6d38","tags":[]},{"url":"https://git.kernel.org/stable/c/d65474033740ded0a4fe9a097fce72328655b41d","tags":[]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":1.31},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 37238abe3cb47b8daaa8706c9949f67b2a705cf1, < b68b2a3fbacc7be720ef589d489bcacdd05c6d38",">= 37238abe3cb47b8daaa8706c9949f67b2a705cf1, < d65474033740ded0a4fe9a097fce72328655b41d"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:52:53.039611Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53837","exploited":false,"provenance":"source"}}