posix-timers: Plug potential memory leak in do_timer_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
posix-timers: Plug potential memory leak in do_timer_create()
When posix timer creation is set to allocate a given timer ID and the access to the user space value faults, the function terminates without freeing the already allocated posix timer structure.
Move the allocation after the user space access to cure that.
[ tglx: Massaged change log ]
From the CVE record · Linux
The Linux kernel can leak memory when POSIX timer creation allocates a specified timer ID and access to the user-space value faults. A local caller can trigger the leak under that condition; the input does not specify authentication requirements.
Anyone running the Linux kernel should check whether their version is affected; affected versions were not provided.