cbcvebase.
CVE-2024-42318
published 2024-08-17

CVE-2024-42318: In the Linux kernel, the following vulnerability has been resolved: landlock: Don't lose track of restrictions on cred_transfer When a process' cred struct is…

PriorityP421medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.29%
20.9th percentile
In the Linux kernel, the following vulnerability has been resolved: landlock: Don't lose track of restrictions on cred_transfer When a process' cred struct is replaced, this _almost_ always invokes the cred_prepare LSM hook; but in one special case (when KEYCTL_SESSION_TO_PARENT updates the parent's credentials), the cred_transfer LSM hook is used instead. Landlock only implements the cred_prepare hook, not cred_transfer, so KEYCTL_SESSION_TO_PARENT causes all information on Landlock restrictions to be lost. This basically means that a process with the ability to use the fork() and keyctl() syscalls can get rid of all Landlock restrictions on itself. Fix it by adding a cred_transfer hook that does the same thing as the existing cred_prepare hook. (Implemented by having hook_cred_prepare() call hook_cred_transfer() so that the two functions are less likely to accidentally diverge in the future.)

Affected

17 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.106-1 (bookworm)linux 6.1.106-1 (bookworm)
debianlinux-6.1< linux 6.1.106-1 (bookworm)linux 6.1.106-1 (bookworm)
linuxlinux
linuxlinux>= 385975dca53eb41031d0cbd1de318eb1bc5d6bb9 < 916c648323fa53b89eedb34a0988ddaf01406117916c648323fa53b89eedb34a0988ddaf01406117
linuxlinux>= 385975dca53eb41031d0cbd1de318eb1bc5d6bb9 < 0d74fd54db0bd0c0c224bef0da8fc95ea9c9f36c0d74fd54db0bd0c0c224bef0da8fc95ea9c9f36c
linuxlinux>= 385975dca53eb41031d0cbd1de318eb1bc5d6bb9 < 16896914bace82d7811c62f3b6d5320132384f4916896914bace82d7811c62f3b6d5320132384f49
linuxlinux>= 385975dca53eb41031d0cbd1de318eb1bc5d6bb9 < b14cc2cf313bd29056fadbc8ecd7f957cf5791ffb14cc2cf313bd29056fadbc8ecd7f957cf5791ff
linuxlinux>= 385975dca53eb41031d0cbd1de318eb1bc5d6bb9 < 39705a6c29f8a2b93cf5b99528a55366c50014d139705a6c29f8a2b93cf5b99528a55366c50014d1
linuxlinux_kernel>= 0 < 6.1.106-16.1.106-1
linuxlinux_kernel>= 0 < 6.10.3-16.10.3-1
linuxlinux_kernel>= 0 < 6.10.3-16.10.3-1
linuxlinux_kernel>= 0 < 5.15.0-125.1355.15.0-125.135
linuxlinux_kernel>= 0 < 6.8.0-50.516.8.0-50.51
linuxlinux_kernel>= 5.13 < 5.15.1655.15.165
linuxlinux_kernel>= 5.16 < 6.1.1036.1.103
linuxlinux_kernel>= 6.2 < 6.6.446.6.44
linuxlinux_kernel>= 6.7 < 6.10.36.10.3

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.