CVE-2024-47739: padata: use integer wrap around to prevent deadlock on seq_nr overflow
In the Linux kernel, the following vulnerability has been resolved:
padata: use integer wrap around to prevent deadlock on seqnr overflow
When submitting more than 2^32 padata objects to padatadoserial, the current sorting implementation incorrectly sorts padata objects with overflowed seqnr, causing them to be placed before existing objects in the reorder list. This leads to a deadlock in the serialization process as padatafindnext cannot match padata->seqnr and pd->processed because the padata instance with overflowed seqnr will be selected next.
To fix this, we use an unsigned integer wrap around to correctly sort padata objects in scenarios with integer overflow.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
padata: use integer wrap around to prevent deadlock on seqnr overflow
When submitting more than 2^32 padata objects to padatadoserial, the current sorting implementation incorrectly sorts padata objects with overflowed seqnr, causing them to be placed before existing objects in the reorder list. This leads to a deadlock in the serialization process as padatafindnext cannot match padata->seqnr and pd->processed because the padata instance with overflowed seqnr will be selected next.
To fix this, we use an unsigned integer wrap around to correctly sort padata objects in scenarios with integer overflow.
— NVD
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
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.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47739?
CVE-2024-47739 is considered a high-severity vulnerability due to its potential to cause deadlocks in the Linux kernel.
How do I fix CVE-2024-47739?
To fix CVE-2024-47739, upgrade your Linux kernel to a version that is patched, such as 6.1.123-1 or later.
What software versions are affected by CVE-2024-47739?
CVE-2024-47739 affects various versions of the Linux kernel including versions from 5.4 to 6.11.2.
What causes the vulnerability CVE-2024-47739?
CVE-2024-47739 is caused by an integer wrap around in the padata sorting implementation, leading to incorrect handling of padata objects.
Is the vulnerability CVE-2024-47739 present in all Linux distributions?
No, CVE-2024-47739 is specific to Linux kernel versions and may not be present in all distributions depending on their kernel version.