CVE-2024-56566: mm/slub: Avoid list corruption when removing a slab from the full list

Published Dec 27, 2024
·
Updated

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

mm/slub: Avoid list corruption when removing a slab from the full list

Boot with slubdebug=UFPZ.

If allocated object failed in allocconsistencychecks, all objects of the slab will be marked as used, and then the slab will be removed from the partial list.

When an object belonging to the slab got freed later, the removefull() function is called. Because the slab is neither on the partial list nor on the full list, it eventually lead to a list corruption (actually a list poison being detected).

So we need to mark and isolate the slab page with metadata corruption, do not put it back in circulation.

Because the debug caches avoid all the fastpaths, reusing the frozen bit to mark slab page with metadata corruption seems to be fine.

[ 4277.385669] listdel corruption, ffffea00044b3e50->next is LISTPOISON1 (dead000000000100) [ 4277.387023] ------------[ cut here ]------------ [ 4277.387880] kernel BUG at lib/listdebug.c:56! [ 4277.388680] invalid opcode: 0000 [#1] PREEMPT SMP PTI [ 4277.389562] CPU: 5 PID: 90 Comm: kworker/5:1 Kdump: loaded Tainted: G OE 6.6.1-1 #1 [ 4277.392113] Workqueue: xfs-inodegc/vda1 xfsinodegcworker [xfs] [ 4277.393551] RIP: 0010:listdelentryvalidorreport+0x7b/0xc0 [ 4277.394518] Code: 48 91 82 e8 37 f9 9a ff 0f 0b 48 89 fe 48 c7 c7 28 49 91 82 e8 26 f9 9a ff 0f 0b 48 89 fe 48 c7 c7 58 49 91 [ 4277.397292] RSP: 0018:ffffc90000333b38 EFLAGS: 00010082 [ 4277.398202] RAX: 000000000000004e RBX: ffffea00044b3e50 RCX: 0000000000000000 [ 4277.399340] RDX: 0000000000000002 RSI: ffffffff828f8715 RDI: 00000000ffffffff [ 4277.400545] RBP: ffffea00044b3e40 R08: 0000000000000000 R09: ffffc900003339f0 [ 4277.401710] R10: 0000000000000003 R11: ffffffff82d44088 R12: ffff888112cf9910 [ 4277.402887] R13: 0000000000000001 R14: 0000000000000001 R15: ffff8881000424c0 [ 4277.404049] FS: 0000000000000000(0000) GS:ffff88842fd40000(0000) knlGS:0000000000000000 [ 4277.405357] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4277.406389] CR2: 00007f2ad0b24000 CR3: 0000000102a3a006 CR4: 00000000007706e0 [ 4277.407589] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4277.408780] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 4277.410000] PKRU: 55555554 [ 4277.410645] Call Trace: [ 4277.411234] <TASK> [ 4277.411777] ? die+0x32/0x80 [ 4277.412439] ? dotrap+0xd6/0x100 [ 4277.413150] ? listdelentryvalidorreport+0x7b/0xc0 [ 4277.414158] ? doerrortrap+0x6a/0x90 [ 4277.414948] ? listdelentryvalidorreport+0x7b/0xc0 [ 4277.415915] ? excinvalidop+0x4c/0x60 [ 4277.416710] ? listdelentryvalidorreport+0x7b/0xc0 [ 4277.417675] ? asmexcinvalidop+0x16/0x20 [ 4277.418482] ? listdelentryvalidorreport+0x7b/0xc0 [ 4277.419466] ? listdelentryvalidorreport+0x7b/0xc0 [ 4277.420410] freetopartiallist+0x515/0x5e0 [ 4277.421242] ? xfsiextremove+0x41a/0xa10 [xfs] [ 4277.422298] xfsiextremove+0x41a/0xa10 [xfs] [ 4277.423316] ? xfsinodegcworker+0xb4/0x1a0 [xfs] [ 4277.424383] xfsbmapdelextentdelay+0x4fe/0x7d0 [xfs] [ 4277.425490] xfsbunmapi+0x50d/0x840 [xfs] [ 4277.426445] xfsitruncateextentsflags+0x13a/0x490 [xfs] [ 4277.427553] xfsinactivetruncate+0xa3/0x120 [xfs] [ 4277.428567] xfsinactive+0x22d/0x290 [xfs] [ 4277.429500] xfsinodegcworker+0xb4/0x1a0 [xfs] [ 4277.430479] processonework+0x171/0x340 [ 4277.431227] workerthread+0x277/0x390 [ 4277.431962] ? pfxworkerthread+0x10/0x10 [ 4277.432752] kthread+0xf0/0x120 [ 4277.433382] ? pfxkthread+0x10/0x10 [ 4277.434134] retfromfork+0x2d/0x50 [ 4277.434837] ? pfxkthread+0x10/0x10 [ 4277.435566] retfromforkasm+0x1b/0x30 [ 4277.436280] </TASK>

Other sources

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

4 affected componentsFixes available
Linux Kernel
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.27-1
Linux Linux kernel>=2.6.22<6.6.64
Linux Linux kernel>=6.7<6.12.4

Event History

Dec 27, 2024
CVE Published
via MITRE·02:23 PM
Data Sourced
via MITRE·02:23 PM
Description
Data Sourced
via Red Hat·03:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
Description
Data Sourced
via NVD·03:15 PM
RemedySeverityWeaknessAffected Software
Mar 27, 2025
Data Sourced
via Launchpad·06:44 PM
Description
May 2, 2025
Data Sourced
via Ubuntu·06:52 PM
RemedyDescriptionSeverityAffected Software
Sep 25, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-56566?

CVE-2024-56566 has a severity rating that highlights its impact on the stability of the Linux kernel.

2

How do I fix CVE-2024-56566?

To fix CVE-2024-56566, update to the latest kernel versions recommended for your Linux distribution.

3

Which versions of Linux are affected by CVE-2024-56566?

CVE-2024-56566 affects versions of the Linux kernel up to 5.10.234 and 6.1.129.

4

What are the consequences of not addressing CVE-2024-56566?

Failing to address CVE-2024-56566 could lead to potential system instability and security risks.

5

Is there a specific debug mode related to CVE-2024-56566?

Yes, booting with slub_debug=UFPZ can help in diagnosing issues related to CVE-2024-56566.

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