CVE-2024-1151: Kernel: stack overflow problem in open vswitch kernel module leading to dos
A flaw in the Linux Kernel found in the Open vSwitch Kernel module.
The Netlink copy code in the ovs kernel module attempts to make an in-kernel copy of the actions required. That means that when recursive operations, like sample(), clone(), decttl(), etc include additional actions, the code pushes a new stack frame and recursively calls into the code block.
Unfortunately, OVS module doesn't validate the stack depth, and will push too many frames causing a stack overflow which can lead to crash.
Reference: https://lore.kernel.org/all/20240207132416.1488485-1-aconole@redhat.com/
Other sources
A vulnerability was reported in the Open vSwitch sub-component in the Linux Kernel. The flaw occurs when a recursive operation of code push recursively calls into the code block. The OVS module does not validate the stack depth, pushing too many frames and causing a stack overflow. As a result, this can lead to a crash or other related issues.
— Launchpad
Kernel: stack overflow problem in open vswitch kernel module leading to dos
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.22.1-2
Event History
Frequently Asked Questions
What is the severity of CVE-2024-1151?
CVE-2024-1151 has been categorized as a significant vulnerability affecting the Linux Kernel's Open vSwitch Kernel module.
How do I fix CVE-2024-1151?
To mitigate CVE-2024-1151, update your Linux Kernel to versions 6.8 or above, or apply respective patches provided by your distribution.
Which software is affected by CVE-2024-1151?
CVE-2024-1151 impacts various Linux distributions including Red Hat Enterprise Linux, Debian, and Fedora.
Is CVE-2024-1151 a remote exploit?
CVE-2024-1151 could potentially be exploited remotely, depending on the specific implementation of the affected software.
What are the potential consequences of CVE-2024-1151?
Exploitation of CVE-2024-1151 could lead to unauthorized actions within the kernel, impacting system integrity and security.