Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-49947

MEDIUM 5.5EPSS 13%

binder: fix alloc->vma_vm_mm null-ptr dereference

Mitigation

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

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

Vulnerability facts

Affected
Linux >= 577d9c05cc48c5242bcf719c06a5baf3105473ad, < 81203ab7a6ef843a2b904a0a494f28c457d44d27; >= 7b0163c1b07b7ff1717aa975821c40df98786ddc, < b2a97babb0a510f8921891f9e70c5a5ef33cadac; >= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, < 1da52815d5f1b654c89044db0cdc6adce43da1f1; Linux >= 5.15.64, < 5.15.66; >= 5.19.6, < 5.19.8
Fixed in
Linux 81203ab7a6ef843a2b904a0a494f28c457d44d27, Linux 1da52815d5f1b654c89044db0cdc6adce43da1f1, Linux 5.15.66, Linux 5.19.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.27% chance of exploitation in 30 days (percentile 13, 2026-11-26)
CWE
CWE-476
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 577d9c05cc48c5242bcf719c06a5baf3105473ad, < 81203ab7a6ef843a2b904a0a494f28c457d44d27; >= 7b0163c1b07b7ff1717aa975821c40df98786ddc, < b2a97babb0a510f8921891f9e70c5a5ef33cadac; >= 44e602b4e52f70f04620bbbf4fe46ecb40170bde, < 1da52815d5f1b654c89044db0cdc6adce43da1f1—cvelist
Linux>= 5.15.64, < 5.15.66; >= 5.19.6, < 5.19.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors