hugetlbfs: release subpool on fill_super failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ca02d0ae586fe7df59632966a64f3f1a756ef05 · < dfe848cadfde4179a0691da34f4bed36ff7185b5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hugetlbfs: release subpool on fill_super failure
hugetlbfs_fill_super() allocates a hugepage subpool when size or min_size mount options are specified. hugepage_new_subpool() may also reserve huge pages for min_size.
If root dentry creation fails after the subpool is created, the failure path frees the subpool with kfree(). This bypasses hugepage_put_subpool() and can leave min_size reservations charged.
Use hugepage_put_subpool() on the failure path, matching the normal put_super path.
From the CVE record · Linux
In the Linux kernel, hugetlbfs can leave huge-page reservations charged if root dentry creation fails after a subpool is created for a mount using size or min_size options. This can occur during a local mount attempt; the input does not establish whether an attacker can trigger the failure or what privileges are required.
Operators running Linux kernels that support hugetlbfs should check their vendor advisory for affected versions.