CVE-2024-57977: memcg: fix soft lockup in the OOM process

Published Feb 27, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

memcg: fix soft lockup in the OOM process

A soft lockup issue was found in the product with about 56,000 tasks were in the OOM cgroup, it was traversing them when the soft lockup was triggered.

watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [VM Thread:1503066] CPU: 2 PID: 1503066 Comm: VM Thread Kdump: loaded Tainted: G Hardware name: Huawei Cloud OpenStack Nova, BIOS RIP: 0010:consoleunlock+0x343/0x540 RSP: 0000:ffffb751447db9a0 EFLAGS: 00000247 ORIGRAX: ffffffffffffff13 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00000000ffffffff RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000247 RBP: ffffffffafc71f90 R08: 0000000000000000 R09: 0000000000000040 R10: 0000000000000080 R11: 0000000000000000 R12: ffffffffafc74bd0 R13: ffffffffaf60a220 R14: 0000000000000247 R15: 0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2fe6ad91f0 CR3: 00000004b2076003 CR4: 0000000000360ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vprintkemit+0x193/0x280 printk+0x52/0x6e dumptask+0x114/0x130 memcgroupscantasks+0x76/0x100 dumpheader+0x1fe/0x210 oomkillprocess+0xd1/0x100 outofmemory+0x125/0x570 memcgroupoutofmemory+0xb5/0xd0 trycharge+0x720/0x770 memcgrouptrycharge+0x86/0x180 memcgrouptrychargedelay+0x1c/0x40 doanonymouspage+0xb5/0x390 handlemmfault+0xc4/0x1f0

This is because thousands of processes are in the OOM cgroup, it takes a long time to traverse all of them. As a result, this lead to soft lockup in the OOM process.

To fix this issue, call 'condresched' in the 'memcgroupscantasks' function per 1000 iterations. For global OOM, call 'touchsoftlockupwatchdog' per 1000 iterations to avoid this issue.

Affected Software

8 affected componentsFixes available
Linux Kernel
Microsoft cbl2 kernel 5.15.182.1-1
Linux Linux kernel>=3.6<6.12.13
Linux Linux kernel>=6.13<6.13.2
Microsoft azl3 kernel 6.6.82.1-1<6.6.82.1-1
6.6.82.1-1
Microsoft cbl2 kernel 5.15.179.1-1<5.15.179.1-1
5.15.179.1-1
Microsoft azl3 kernel 6.6.92.2-1<6.6.82.1-1
6.6.82.1-1
Microsoft cbl2 kernel 5.15.182.1-1<5.15.179.1-1
5.15.179.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.82.1-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.179.1-1

Event History

Feb 27, 2025
CVE Published
via MITRE·02:07 AM
Data Sourced
via MITRE·02:07 AM
Description
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·03:05 AM
DescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·04:30 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·04:30 AM
SeverityAffected Software
Updated
via Microsoft·04:30 AM
Affected Software
Updated
via Microsoft·04:30 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2024-57977?

CVE-2024-57977 is categorized with a high severity due to the potential for system instability through a soft lockup in the OOM process.

2

How do I fix CVE-2024-57977?

To fix CVE-2024-57977, you should update the Linux kernel to the latest stable release that addresses this vulnerability.

3

What are the affected versions for CVE-2024-57977?

CVE-2024-57977 affects Linux kernel versions between 3.6 and 6.12.13, as well as versions from 6.13 to 6.13.2.

4

What does CVE-2024-57977 impact?

CVE-2024-57977 impacts the memory control group (memcg) subsystem of the Linux kernel, leading to potential process management issues.

5

Is CVE-2024-57977 a remote exploit vulnerability?

CVE-2024-57977 is not categorized as a remote exploit vulnerability; it requires local access to exploit the soft lockup condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203