# CVE-2024-39488: arm64: asm-bug: Add .align 2 to the end of \_\_BUG\_ENTRY

> 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.31% (percentile 16, 2026-11-26)
- **Published:** 2024-07-10T07:14:08.319Z
- **Modified:** 2026-06-17T07:42:01.567Z

## Who should check

- Anyone running Linux \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< f221bd58db0f6ca087ac0392284f6bce21f4f8ea; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 22469a0335a1a1a690349b58bcb55822457df81e; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 461a760d578b2b2c2faac3040b6b7c77baf128f8; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c1929c041a262a4a27265db8dce3619c92aa678c; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 3fd487ffaa697ddb05af78a75aaaddabe71c52b0; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 9f2ad88f9b349554f64e4037ec185c84d7dd9c7d; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c27a2f7668e215c1ebbccd96fab27a220a93f1f7; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< ffbf4fb9b5c12ff878a10ea17997147ea4ebea6f
- Anyone running Linux 4.3

## Description

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

arm64: asm-bug: Add .align 2 to the end of \_\_BUG\_ENTRY

When CONFIG\_DEBUG\_BUGVERBOSE=n, we fail to add necessary padding bytes
to bug\_table entries, and as a result the last entry in a bug table will
be ignored, potentially leading to an unexpected panic(). All prior
entries in the table will be handled correctly.

The arm64 ABI requires that struct fields of up to 8 bytes are
naturally-aligned, with padding added within a struct such that struct
are suitably aligned within arrays.

When CONFIG\_DEBUG\_BUGVERPOSE=y, the layout of a bug\_entry is:

	struct bug\_entry {
		signed int      bug\_addr\_disp;	// 4 bytes
		signed int      file\_disp;	// 4 bytes
		unsigned short  line;		// 2 bytes
		unsigned short  flags;		// 2 bytes
	}

... with 12 bytes total, requiring 4-byte alignment.

When CONFIG\_DEBUG\_BUGVERBOSE=n, the layout of a bug\_entry is:

	struct bug\_entry {
		signed int      bug\_addr\_disp;	// 4 bytes
		unsigned short  flags;		// 2 bytes
		\< implicit padding \>		// 2 bytes
	}

... with 8 bytes total, with 6 bytes of data and 2 bytes of trailing
padding, requiring 4-byte alginment.

When we create a bug\_entry in assembly, we align the start of the entry
to 4 bytes, which implicitly handles padding for any prior entries.
However, we do not align the end of the entry, and so when
CONFIG\_DEBUG\_BUGVERBOSE=n, the final entry lacks the trailing padding
bytes.

For the main kernel image this is not a problem as find\_bug() doesn't
depend on the trailing padding bytes when searching for entries:

	for (bug = \_\_start\_\_\_bug\_table; bug \< \_\_stop\_\_\_bug\_table; ++bug)
		if (bugaddr == bug\_addr(bug))
			return bug;

However for modules, module\_bug\_finalize() depends on the trailing
bytes when calculating the number of entries:

	mod-\>num\_bugs = sechdrs\[i\].sh\_size / sizeof(struct bug\_entry);

... and as the last bug\_entry lacks the necessary padding bytes, this entry
will not be counted, e.g. in the case of a single entry:

	sechdrs\[i\].sh\_size == 6
	sizeof(struct bug\_entry) == 8;

	sechdrs\[i\].sh\_size / sizeof(struct bug\_entry) == 0;

Consequently module\_find\_bug() will miss the last bug\_entry when it does:

	for (i = 0; i \< mod-\>num\_bugs; ++i, ++bug)
		if (bugaddr == bug\_addr(bug))
			goto out;

... which can lead to a kenrel panic due to an unhandled bug.

This can be demonstrated with the following module:

	static int \_\_init buginit(void)
	{
		WARN(1, "hello\\n");
		return 0;
	}

	static void \_\_exit bugexit(void)
	{
	}

	module\_init(buginit);
	module\_exit(bugexit);
	MODULE\_LICENSE("GPL");

... which will trigger a kernel panic when loaded:

	------------\[ cut here \]------------
	hello
	Unexpected kernel BRK exception at EL1
	Internal error: BRK handler: 00000000f2000800 \[\#1\] PREEMPT SMP
	Modules linked in: hello(O+)
	CPU: 0 PID: 50 Comm: insmod Tainted: G           O       6.9.1 \#8
	Hardware name: linux,dummy-virt (DT)
	pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
	pc : buginit+0x18/0x1000 \[hello\]
	lr : buginit+0x18/0x1000 \[hello\]
	sp : ffff800080533ae0
	x29: ffff800080533ae0 x28: 0000000000000000 x27: 0000000000000000
	x26: ffffaba8c4e70510 x25: ffff800080533c30 x24: ffffaba8c4a28a58
	x23: 0000000000000000 x22: 0000000000000000 x21: ffff3947c0eab3c0
	x20: ffffaba8c4e3f000 x19: ffffaba846464000 x18: 0000000000000006
	x17: 0000000000000000 x16: ffffaba8c2492834 x15: 0720072007200720
	x14: 0720072007200720 x13: ffffaba8c49b27c8 x12: 0000000000000312
	x11: 0000000000000106 x10: ffffaba8c4a0a7c8 x9 : ffffaba8c49b27c8
	x8 : 00000000ffffefff x7 : ffffaba8c4a0a7c8 x6 : 80000000fffff000
	x5 : 0000000000000107 x4 : 0000000000000000 x3 : 0000000000000000
	x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff3947c0eab3c0
	Call trace:
	 buginit+0x18/0x1000 \[hello\]
	 do\_one\_initcall+0x80/0x1c8
	 do\_init\_module+0x60/0x218
	 load\_module+0x1ba4/0x1d70
	 \_\_do\_sys\_init\_module+0x198/0x1d0
	 \_\_arm64\_sys\_init\_module+0x1c/0x28
	 invoke\_syscall+0x48/0x114
	 el0\_svc
---truncated---

## Affected and fixed versions

- Linux: \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< f221bd58db0f6ca087ac0392284f6bce21f4f8ea; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 22469a0335a1a1a690349b58bcb55822457df81e; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 461a760d578b2b2c2faac3040b6b7c77baf128f8; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c1929c041a262a4a27265db8dce3619c92aa678c; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 3fd487ffaa697ddb05af78a75aaaddabe71c52b0; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 9f2ad88f9b349554f64e4037ec185c84d7dd9c7d; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c27a2f7668e215c1ebbccd96fab27a220a93f1f7; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< ffbf4fb9b5c12ff878a10ea17997147ea4ebea6f (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-39488.md
Affected: Linux >= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, < f221bd58db0f6ca087ac0392284f6bce21f4f8ea; >= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, < 22469a0335a1a1a690349b58bcb55822457df81e; >= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, < 461a760d578b2b2c2faac3040b6b7c77baf128f8; >= 9fb7410f955f7a62c1f882c…
Fixed in: Linux 22469a0335a1a1a690349b58bcb55822457df81e, Linux 461a760d578b2b2c2faac3040b6b7c77baf128f8, Linux 3fd487ffaa697ddb05af78a75aaaddabe71c52b0, Linux 9f2ad88f9b349554f64e4037ec185c84d7dd9c7d

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-39488 being exploited?

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

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

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

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

Linux \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< f221bd58db0f6ca087ac0392284f6bce21f4f8ea; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 22469a0335a1a1a690349b58bcb55822457df81e; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 461a760d578b2b2c2faac3040b6b7c77baf128f8; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c1929c041a262a4a27265db8dce3619c92aa678c; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 3fd487ffaa697ddb05af78a75aaaddabe71c52b0; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< 9f2ad88f9b349554f64e4037ec185c84d7dd9c7d; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< c27a2f7668e215c1ebbccd96fab27a220a93f1f7; \>= 9fb7410f955f7a62c1f882ca8f9ffd4525907e28, \< ffbf4fb9b5c12ff878a10ea17997147ea4ebea6f; Linux 4.3.

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

Yes. Fixed in Linux 22469a0335a1a1a690349b58bcb55822457df81e, Linux 461a760d578b2b2c2faac3040b6b7c77baf128f8, Linux 3fd487ffaa697ddb05af78a75aaaddabe71c52b0, Linux 9f2ad88f9b349554f64e4037ec185c84d7dd9c7d. No fix listed yet: follow the vendor advisory.

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

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/f221bd58db0f6ca087ac0392284f6bce21f4f8ea>
- patch: <https://git.kernel.org/stable/c/22469a0335a1a1a690349b58bcb55822457df81e>
- patch: <https://git.kernel.org/stable/c/461a760d578b2b2c2faac3040b6b7c77baf128f8>
- patch: <https://git.kernel.org/stable/c/c1929c041a262a4a27265db8dce3619c92aa678c>
- patch: <https://git.kernel.org/stable/c/3fd487ffaa697ddb05af78a75aaaddabe71c52b0>
- patch: <https://git.kernel.org/stable/c/9f2ad88f9b349554f64e4037ec185c84d7dd9c7d>
- patch: <https://git.kernel.org/stable/c/c27a2f7668e215c1ebbccd96fab27a220a93f1f7>
- patch: <https://git.kernel.org/stable/c/ffbf4fb9b5c12ff878a10ea17997147ea4ebea6f>

## 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-39488>

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