# CVE-2026-53243: rseq: Fix using an uninitialized stack variable in rseq_exit_user_update()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-02)
- Published: 2026-06-25T08:39:37.794Z
- Modified: 2026-07-07T22:21:55.840Z
- Weaknesses: CWE-908
- Assigned by: Linux

## Description

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

rseq: Fix using an uninitialized stack variable in rseq_exit_user_update()

There is an bug in which an uninitialized stack variable is used in
rseq_exit_user_update() as reported by syzbot:

BUG: KMSAN: kernel-infoleak in rseq_set_ids_get_csaddr include/linux/rseq_entry.h:502 [inline]

The local variable:

	struct rseq_ids ids = {
		.cpu_id	 = task_cpu(t),
		.mm_cid	 = task_mm_cid(t),
		.node_id = cpu_to_node(ids.cpu_id),
	};

According to the C standard, the evaluation order of expressions in an
initializer list is indeterminately sequenced. The compiler (Clang, in
this KMSAN build) evaluates `cpu_to_node(ids.cpu_id)` *before*
`ids.cpu_id` is initialized with `task_cpu(t)`.

This is fixed by moving the assignment of ids.node_id outside the
structure initialization.

(As written by CVE List.)

## Affected

- Linux Linux: from d242126fd21ab8f1631fdbc8589e43a9d4229f3b before e12d20a63b61aaf9de4772effccf42cc9a003e58; from 82f572449cfe75f12ea985986da60e11f308f77d before 6d99479799c69c3cb588fcda19c81d8f61d64ecd; from 7.0.10 before 7.0.13
- linux linux_kernel: from 7.0.10 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/e12d20a63b61aaf9de4772effccf42cc9a003e58> (patch)
- <https://git.kernel.org/stable/c/6d99479799c69c3cb588fcda19c81d8f61d64ecd> (patch)

## Sources

- CVE List: [CVE-2026-53243](https://www.cve.org/CVERecord?id=CVE-2026-53243), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-53243](https://nvd.nist.gov/vuln/detail/CVE-2026-53243), Public domain, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-53243 · Whole record: https://cve.day/CVE-2026-53243.json · Rebuilt by cve.day 2026-11-25T22:59:26.330Z
