efivarfs: Rate limit statfs() handler
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d86ff3333cb1d5f42d8898fb5fdb304e143c0237 · < b2326338dc683e8c1067c0cbf7a47986c4190902| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
efivarfs: Rate limit statfs() handler
Ravi reports that statfs() may be called by unprivileged users on the efivarfs mount point, which may result in a flood of calls to the QueryVariableInfo() runtime service. These calls are disproportionately costly on x86 systems where the variable store is backed by SMM, as each SMM entry requires a rendez-vous of all the CPUs.
So rate limit the calls to QueryVariableInfo() at twice per second, and return the most recently obtained value for calls that are elided.
From the CVE record · Linux
The efivarfs statfs() handler can trigger a flood of costly QueryVariableInfo() runtime-service calls. A local unprivileged user can cause this by repeatedly calling statfs() on an efivarfs mount point; the cost is especially high on x86 systems with an SMM-backed variable store. No authentication beyond local user access or other user interaction is described.
Operators running Linux kernels with efivarfs should check their exposure; affected versions are not specified.