# CVE-2022-49947: binder: fix alloc-\>vma\_vm\_mm null-ptr dereference

> 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.27% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:00:11.012Z
- **Modified:** 2026-06-17T05:19:35.923Z

## Who should check

- Anyone running Linux \>= 577d9c05cc48c5242bcf719c06a5baf3105473ad, \< 81203ab7a6ef843a2b904a0a494f28c457d44d27; \>= 7b0163c1b07b7ff1717aa975821c40df98786ddc, \< b2a97babb0a510f8921891f9e70c5a5ef33cadac; \>= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, \< 1da52815d5f1b654c89044db0cdc6adce43da1f1
- Anyone running Linux \>= 5.15.64, \< 5.15.66; \>= 5.19.6, \< 5.19.8

## Description

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

binder: fix alloc-\>vma\_vm\_mm null-ptr dereference

Syzbot reported a couple issues introduced by commit 44e602b4e52f
("binder\_alloc: add missing mmap\_lock calls when using the VMA"), in
which we attempt to acquire the mmap\_lock when alloc-\>vma\_vm\_mm has not
been initialized yet.

This can happen if a binder\_proc receives a transaction without having
previously called mmap() to setup the binder\_proc-\>alloc space in \[1\].
Also, a similar issue occurs via binder\_alloc\_print\_pages() when we try
to dump the debugfs binder stats file in \[2\].

Sample of syzbot's crash report:
  ==================================================================
  KASAN: null-ptr-deref in range \[0x0000000000000128-0x000000000000012f\]
  CPU: 0 PID: 3755 Comm: syz-executor229 Not tainted 6.0.0-rc1-next-20220819-syzkaller \#0
  syz-executor229\[3755\] cmdline: ./syz-executor2294415195
  Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
  RIP: 0010:\_\_lock\_acquire+0xd83/0x56d0 kernel/locking/lockdep.c:4923
  \[...\]
  Call Trace:
   \<TASK\>
   lock\_acquire kernel/locking/lockdep.c:5666 \[inline\]
   lock\_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
   down\_read+0x98/0x450 kernel/locking/rwsem.c:1499
   mmap\_read\_lock include/linux/mmap\_lock.h:117 \[inline\]
   binder\_alloc\_new\_buf\_locked drivers/android/binder\_alloc.c:405 \[inline\]
   binder\_alloc\_new\_buf+0xa5/0x19e0 drivers/android/binder\_alloc.c:593
   binder\_transaction+0x242e/0x9a80 drivers/android/binder.c:3199
   binder\_thread\_write+0x664/0x3220 drivers/android/binder.c:3986
   binder\_ioctl\_write\_read drivers/android/binder.c:5036 \[inline\]
   binder\_ioctl+0x3470/0x6d00 drivers/android/binder.c:5323
   vfs\_ioctl fs/ioctl.c:51 \[inline\]
   \_\_do\_sys\_ioctl fs/ioctl.c:870 \[inline\]
   \_\_se\_sys\_ioctl fs/ioctl.c:856 \[inline\]
   \_\_x64\_sys\_ioctl+0x193/0x200 fs/ioctl.c:856
   do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
   do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
   entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
   \[...\]
  ==================================================================

Fix these issues by setting up alloc-\>vma\_vm\_mm pointer during open()
and caching directly from current-\>mm. This guarantees we have a valid
reference to take the mmap\_lock during scenarios described above.

\[1\] https://syzkaller.appspot.com/bug?extid=f7dc54e5be28950ac459
\[2\] https://syzkaller.appspot.com/bug?extid=a75ebe0452711c9e56d9

## Affected and fixed versions

- Linux: \>= 577d9c05cc48c5242bcf719c06a5baf3105473ad, \< 81203ab7a6ef843a2b904a0a494f28c457d44d27; \>= 7b0163c1b07b7ff1717aa975821c40df98786ddc, \< b2a97babb0a510f8921891f9e70c5a5ef33cadac; \>= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, \< 1da52815d5f1b654c89044db0cdc6adce43da1f1 (cvelist)
- Linux: \>= 5.15.64, \< 5.15.66; \>= 5.19.6, \< 5.19.8 (cvelist)

## Mitigation

- Upgrade Linux to 1da52815d5f1b654c89044db0cdc6adce43da1f1 or later.
- Upgrade Linux to 5.19.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49947.md
Affected: Linux >= 577d9c05cc48c5242bcf719c06a5baf3105473ad, < 81203ab7a6ef843a2b904a0a494f28c457d44d27; >= 7b0163c1b07b7ff1717aa975821c40df98786ddc, < b2a97babb0a510f8921891f9e70c5a5ef33cadac; >= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, < 1da52815d5f1b654c89044db0cdc6adce43da1f1; Linux >= 5.15.64, < 5.15.6…
Fixed in: Linux 81203ab7a6ef843a2b904a0a494f28c457d44d27, Linux 1da52815d5f1b654c89044db0cdc6adce43da1f1, Linux 5.15.66, Linux 5.19.8

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

There is no confirmed exploitation: CVE-2022-49947 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-49947?

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

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

Linux \>= 577d9c05cc48c5242bcf719c06a5baf3105473ad, \< 81203ab7a6ef843a2b904a0a494f28c457d44d27; \>= 7b0163c1b07b7ff1717aa975821c40df98786ddc, \< b2a97babb0a510f8921891f9e70c5a5ef33cadac; \>= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, \< 1da52815d5f1b654c89044db0cdc6adce43da1f1; Linux \>= 5.15.64, \< 5.15.66; \>= 5.19.6, \< 5.19.8.

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

Yes. Fixed in Linux 81203ab7a6ef843a2b904a0a494f28c457d44d27, Linux 1da52815d5f1b654c89044db0cdc6adce43da1f1, Linux 5.15.66, Linux 5.19.8. Upgrade Linux to 1da52815d5f1b654c89044db0cdc6adce43da1f1 or later. Upgrade Linux to 5.19.8 or later.

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

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/81203ab7a6ef843a2b904a0a494f28c457d44d27>
- patch: <https://git.kernel.org/stable/c/b2a97babb0a510f8921891f9e70c5a5ef33cadac>
- patch: <https://git.kernel.org/stable/c/1da52815d5f1b654c89044db0cdc6adce43da1f1>

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

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