# CVE-2022-49401: mm/page\_owner: use strscpy() instead of strlcpy()

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-02-26T02:12:28.603Z
- **Modified:** 2026-06-17T05:17:56.677Z

## Who should check

- Anyone running Linux \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf; \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< cd8c1fd8cdd14158f2d8bea2d1bfe8015dccfa3a
- Anyone running Linux 5.18

## Description

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

mm/page\_owner: use strscpy() instead of strlcpy()

current-\>comm\[\] is not a string (no guarantee for a zero byte in it).

strlcpy(s1, s2, l) is calling strlen(s2), potentially
causing out-of-bound access, as reported by syzbot:

detected buffer overflow in \_\_fortify\_strlen
------------\[ cut here \]------------
kernel BUG at lib/string\_helpers.c:980!
invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN
CPU: 0 PID: 4087 Comm: dhcpcd-run-hooks Not tainted 5.18.0-rc3-syzkaller-01537-g20b87e7c29df \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fortify\_panic+0x18/0x1a lib/string\_helpers.c:980
Code: 8c e8 c5 ba e1 fa e9 23 0f bf fa e8 0b 5d 8c f8 eb db 55 48 89 fd e8 e0 49 40 f8 48 89 ee 48 c7 c7 80 f5 26 8a e8 99 09 f1 ff \<0f\> 0b e8 ca 49 40 f8 48 8b 54 24 18 4c 89 f1 48 c7 c7 00 00 27 8a
RSP: 0018:ffffc900000074a8 EFLAGS: 00010286

RAX: 000000000000002c RBX: ffff88801226b728 RCX: 0000000000000000
RDX: ffff8880198e0000 RSI: ffffffff81600458 RDI: fffff52000000e87
RBP: ffffffff89da2aa0 R08: 000000000000002c R09: 0000000000000000
R10: ffffffff815fae2e R11: 0000000000000000 R12: ffff88801226b700
R13: ffff8880198e0830 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5876ad6ff8 CR3: 000000001a48c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 \<IRQ\>
 \_\_fortify\_strlen include/linux/fortify-string.h:128 \[inline\]
 strlcpy include/linux/fortify-string.h:143 \[inline\]
 \_\_set\_page\_owner\_handle+0x2b1/0x3e0 mm/page\_owner.c:171
 \_\_set\_page\_owner+0x3e/0x50 mm/page\_owner.c:190
 prep\_new\_page mm/page\_alloc.c:2441 \[inline\]
 get\_page\_from\_freelist+0xba2/0x3e00 mm/page\_alloc.c:4182
 \_\_alloc\_pages+0x1b2/0x500 mm/page\_alloc.c:5408
 alloc\_pages+0x1aa/0x310 mm/mempolicy.c:2272
 alloc\_slab\_page mm/slub.c:1799 \[inline\]
 allocate\_slab+0x26c/0x3c0 mm/slub.c:1944
 new\_slab mm/slub.c:2004 \[inline\]
 \_\_\_slab\_alloc+0x8df/0xf20 mm/slub.c:3005
 \_\_slab\_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3092
 slab\_alloc\_node mm/slub.c:3183 \[inline\]
 slab\_alloc mm/slub.c:3225 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slub.c:3232 \[inline\]
 kmem\_cache\_alloc+0x360/0x3b0 mm/slub.c:3242
 dst\_alloc+0x146/0x1f0 net/core/dst.c:92

## Affected and fixed versions

- Linux: \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf; \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< cd8c1fd8cdd14158f2d8bea2d1bfe8015dccfa3a (cvelist)
- Linux: 5.18 (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-49401. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49401.md
Affected: Linux >= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, < 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf; >= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, < cd8c1fd8cdd14158f2d8bea2d1bfe8015dccfa3a; Linux 5.18
Fixed in: Linux 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf

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

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

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

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

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

Linux \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf; \>= 865ed6a3278654ce4a55eb74c5283eeb82ad4699, \< cd8c1fd8cdd14158f2d8bea2d1bfe8015dccfa3a; Linux 5.18.

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

Yes. Fixed in Linux 5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf. No fix listed yet: follow the vendor advisory.

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

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/5cd9900a1ac8b0a4ff3cd97d4d77b7711be435bf>
- patch: <https://git.kernel.org/stable/c/cd8c1fd8cdd14158f2d8bea2d1bfe8015dccfa3a>

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

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