# CVE-2024-56560: slab: Fix too strict alignment check in create\_cache()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2024-12-27T14:23:05.490Z
- **Modified:** 2026-06-17T08:12:25.013Z

## Who should check

- Anyone running Linux \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16; \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 9008fe8fad8255edfdbecea32d7eb0485d939d0d
- Anyone running Linux 6.12

## Description

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

slab: Fix too strict alignment check in create\_cache()

On m68k, where the minimum alignment of unsigned long is 2 bytes:

    Kernel panic - not syncing: \_\_kmem\_cache\_create\_args: Failed to create slab 'io\_kiocb'. Error -22
    CPU: 0 UID: 0 PID: 1 Comm: swapper Not tainted 6.12.0-atari-03776-g7eaa1f99261a \#1783
    Stack from 0102fe5c:
	    0102fe5c 00514a2b 00514a2b ffffff00 00000001 0051f5ed 00425e78 00514a2b
	    0041eb74 ffffffea 00000310 0051f5ed ffffffea ffffffea 00601f60 00000044
	    0102ff20 000e7a68 0051ab8e 004383b8 0051f5ed ffffffea 000000b8 00000007
	    01020c00 00000000 000e77f0 0041e5f0 005f67c0 0051f5ed 000000b6 0102fef4
	    00000310 0102fef4 00000000 00000016 005f676c 0060a34c 00000010 00000004
	    00000038 0000009a 01000000 000000b8 005f668e 0102e000 00001372 0102ff88
    Call Trace: \[\<00425e78\>\] dump\_stack+0xc/0x10
     \[\<0041eb74\>\] panic+0xd8/0x26c
     \[\<000e7a68\>\] \_\_kmem\_cache\_create\_args+0x278/0x2e8
     \[\<000e77f0\>\] \_\_kmem\_cache\_create\_args+0x0/0x2e8
     \[\<0041e5f0\>\] memset+0x0/0x8c
     \[\<005f67c0\>\] io\_uring\_init+0x54/0xd2

The minimal alignment of an integral type may differ from its size,
hence is not safe to assume that an arbitrary freeptr\_t (which is
basically an unsigned long) is always aligned to 4 or 8 bytes.

As nothing seems to require the additional alignment, it is safe to fix
this by relaxing the check to the actual minimum alignment of freeptr\_t.

## Affected and fixed versions

- Linux: \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16; \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 9008fe8fad8255edfdbecea32d7eb0485d939d0d (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 9008fe8fad8255edfdbecea32d7eb0485d939d0d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56560. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56560.md
Affected: Linux >= d345bd2e9834e2da505977e154a1c179c793b7b2, < 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16; >= d345bd2e9834e2da505977e154a1c179c793b7b2, < 9008fe8fad8255edfdbecea32d7eb0485d939d0d; Linux 6.12
Fixed in: Linux 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16, Linux 9008fe8fad8255edfdbecea32d7eb0485d939d0d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56560 being exploited?

There is no confirmed exploitation: CVE-2024-56560 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56560?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56560?

Linux \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16; \>= d345bd2e9834e2da505977e154a1c179c793b7b2, \< 9008fe8fad8255edfdbecea32d7eb0485d939d0d; Linux 6.12.

### Is there a fix for CVE-2024-56560?

Yes. Fixed in Linux 8b5aea5e5186733fa4e5aa4293b0a65a933f1a16, Linux 9008fe8fad8255edfdbecea32d7eb0485d939d0d. Upgrade Linux to 9008fe8fad8255edfdbecea32d7eb0485d939d0d or later.

### How do I check if I'm affected by CVE-2024-56560?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8b5aea5e5186733fa4e5aa4293b0a65a933f1a16>
- patch: <https://git.kernel.org/stable/c/9008fe8fad8255edfdbecea32d7eb0485d939d0d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56560>

HTML: <https://flawdb.com/CVE-2024-56560> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56560>
