net: gtp: Fix Use-After-Free in gtp_dellink
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 94dc550a5062030569d4aa76e10e50c8fc001930 · < 2aacd4de45477582993f8a8abb9505a06426bfb6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: gtp: Fix Use-After-Free in gtp_dellink
Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of gtp_dellink, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free.
To prevent this, it should be changed to hlist_for_each_entry_safe.
From the CVE record · Linux
The Linux kernel's gtp_dellink function has a use-after-free vulnerability: an RCU grace period can pass during traversal, freeing a key that is still being traversed. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Anyone running the Linux kernel should check whether their kernel includes the affected GTP code; affected versions are not specified.