# CVE-2022-50674: riscv: vdso: fix NULL deference in vdso\_join\_timens() when vfork

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T01:29:26.600Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< df30c4feba51beeb138f3518c2421abc8cbda3c1; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< f2419a6fbb4caf8cf3fe0ac7e4cf2e28127d04b4; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< a8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9
- Anyone running Linux 5.19

## Description

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

riscv: vdso: fix NULL deference in vdso\_join\_timens() when vfork

Testing tools/testing/selftests/timens/vfork\_exec.c got below
kernel log:

\[    6.838454\] Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000000000020
\[    6.842255\] Oops \[\#1\]
\[    6.842871\] Modules linked in:
\[    6.844249\] CPU: 1 PID: 64 Comm: vfork\_exec Not tainted 6.0.0-rc3-rt15+ \#8
\[    6.845861\] Hardware name: riscv-virtio,qemu (DT)
\[    6.848009\] epc : vdso\_join\_timens+0xd2/0x110
\[    6.850097\]  ra : vdso\_join\_timens+0xd2/0x110
\[    6.851164\] epc : ffffffff8000635c ra : ffffffff8000635c sp : ff6000000181fbf0
\[    6.852562\]  gp : ffffffff80cff648 tp : ff60000000fdb700 t0 : 3030303030303030
\[    6.853852\]  t1 : 0000000000000030 t2 : 3030303030303030 s0 : ff6000000181fc40
\[    6.854984\]  s1 : ff60000001e6c000 a0 : 0000000000000010 a1 : ffffffff8005654c
\[    6.856221\]  a2 : 00000000ffffefff a3 : 0000000000000000 a4 : 0000000000000000
\[    6.858114\]  a5 : 0000000000000000 a6 : 0000000000000008 a7 : 0000000000000038
\[    6.859484\]  s2 : ff60000001e6c068 s3 : ff6000000108abb0 s4 : 0000000000000000
\[    6.860751\]  s5 : 0000000000001000 s6 : ffffffff8089dc40 s7 : ffffffff8089dc38
\[    6.862029\]  s8 : ffffffff8089dc30 s9 : ff60000000fdbe38 s10: 000000000000005e
\[    6.863304\]  s11: ffffffff80cc3510 t3 : ffffffff80d1112f t4 : ffffffff80d1112f
\[    6.864565\]  t5 : ffffffff80d11130 t6 : ff6000000181fa00
\[    6.865561\] status: 0000000000000120 badaddr: 0000000000000020 cause: 000000000000000d
\[    6.868046\] \[\<ffffffff8008dc94\>\] timens\_commit+0x38/0x11a
\[    6.869089\] \[\<ffffffff8008dde8\>\] timens\_on\_fork+0x72/0xb4
\[    6.870055\] \[\<ffffffff80190096\>\] begin\_new\_exec+0x3c6/0x9f0
\[    6.871231\] \[\<ffffffff801d826c\>\] load\_elf\_binary+0x628/0x1214
\[    6.872304\] \[\<ffffffff8018ee7a\>\] bprm\_execve+0x1f2/0x4e4
\[    6.873243\] \[\<ffffffff8018f90c\>\] do\_execveat\_common+0x16e/0x1ee
\[    6.874258\] \[\<ffffffff8018f9c8\>\] sys\_execve+0x3c/0x48
\[    6.875162\] \[\<ffffffff80003556\>\] ret\_from\_syscall+0x0/0x2
\[    6.877484\] ---\[ end trace 0000000000000000 \]---

This is because the mm-\>context.vdso\_info is NULL in vfork case. From
another side, mm-\>context.vdso\_info either points to vdso info
for RV64 or vdso info for compat, there's no need to bloat riscv's
mm\_context\_t, we can handle the difference when setup the additional
page for vdso.

## Affected and fixed versions

- Linux: \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< df30c4feba51beeb138f3518c2421abc8cbda3c1; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< f2419a6fbb4caf8cf3fe0ac7e4cf2e28127d04b4; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< a8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9 (cvelist)
- Linux: 5.19 (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-2022-50674. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50674.md
Affected: Linux >= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, < df30c4feba51beeb138f3518c2421abc8cbda3c1; >= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, < f2419a6fbb4caf8cf3fe0ac7e4cf2e28127d04b4; >= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, < a8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9; Linux 5.19
Fixed in: no fixed version listed yet

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-2022-50674 being exploited?

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

### How serious is CVE-2022-50674?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50674?

Linux \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< df30c4feba51beeb138f3518c2421abc8cbda3c1; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< f2419a6fbb4caf8cf3fe0ac7e4cf2e28127d04b4; \>= 3092eb45637573c5e435fbf5eaf9516316e5f9c6, \< a8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9; Linux 5.19.

### Is there a fix for CVE-2022-50674?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50674?

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

- other: <https://git.kernel.org/stable/c/df30c4feba51beeb138f3518c2421abc8cbda3c1>
- other: <https://git.kernel.org/stable/c/f2419a6fbb4caf8cf3fe0ac7e4cf2e28127d04b4>
- other: <https://git.kernel.org/stable/c/a8616d2dc193b6becc36b5f3cfeaa9ac7a5762f9>

## 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-2022-50674>

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