ecryptfs: hold msg ctx list lock when cleaning daemon queue
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f66e883eb6186bc43a79581b67aff7d1a69d0ff1 · < 0d9636ecba34bd553ecf19049f7705505aea62fd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ecryptfs: hold msg ctx list lock when cleaning daemon queue
ecryptfs_exorcise_daemon() drops queued messages from a dying daemon without holding ecryptfs_msg_ctx_lists_mux, but ecryptfs_msg_ctx_alloc_to_free() requires that lock.
Take the list lock while moving the queued contexts back to the free list to avoid racing with other global msg ctx list users.
From the CVE record · Linux
The Linux kernel’s ecryptfs code cleans up queued messages from a dying daemon without holding a required list lock, allowing a race with other users of the global message-context lists. The input does not specify what an attacker can do, whether authentication or user interaction is needed, or whether the issue is exploitable remotely.
Teams running Linux kernels with ecryptfs should check their kernel versions against the vendor advisory; affected versions were not provided.