nommu: pass NULL argument to vma_iter_prealloc()
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 |
|
|
6.6.636.11.106.12In the Linux kernel, the following vulnerability has been resolved:
nommu: pass NULL argument to vma_iter_prealloc()
When deleting a vma entry from a maple tree, it has to pass NULL to vma_iter_prealloc() in order to calculate internal state of the tree, but it passed a wrong argument. As a result, nommu kernels crashed upon accessing a vma iterator, such as acct_collect() reading the size of vma entries after do_munmap().
This commit fixes this issue by passing a right argument to the preallocation call.
From the CVE record · Linux
The Linux kernel’s nommu code passes the wrong argument when preparing to delete a VMA entry from a maple tree. This can crash a nommu kernel when a VMA iterator is accessed after do_munmap(), such as when acct_collect() reads VMA sizes. The input does not specify an attacker path, authentication requirements, or user interaction.
Operators running Linux kernels with nommu should check whether their kernel is affected; affected versions were not provided.