Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-49049

published

mm/secretmem: fix panic when growing a memfd_secret

Published
26 Feb 2025, 01:54:24 UTC
Updated
11 May 2026, 18:52:03 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < b6d17c67885a5624e96eb30c4178c65eea8374bf · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 9d3b877daf805fed29be8f61aa3d0ea37df82c7b · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < f9b141f93659e09a52e28791ccbaf69c273b8e92 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.35 through 5.15.* (unaffected · semver) · 5.17.4 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoaarch64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoppc64le Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfos390x Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfox86_64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelsrc Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64kaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debugaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-abi-stablelistsnoarch Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugs390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfos390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfox86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matcheds390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-moduless390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrappc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extras390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrax86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-uki-virtx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfos390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfox86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-aarch64aarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-ppc64leppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-s390xs390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-x86_64x86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matcheds390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-docnoarch Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-moduless390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrappc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extras390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrax86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolss390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: mm/secretmem: fix panic when growing a memfd_secret When one tries to grow an existing memfd_secret with ftruncate, one gets a panic [1]. For example, doing the following reliably induces the panic: fd = memfd_secret(); ftruncate(fd, 10); ptr = mmap(NULL, 10, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); strcpy(ptr, "123456789"); munmap(ptr, 10); ftruncate(fd, 20); The basic reason for this is, when we grow with ftruncate, we call down into simple_setattr, and then truncate_inode_pages_range, and eventually we try to zero part of the memory. The normal truncation code does this via the direct map (i.e., it calls page_address() and hands that to memset()). For memfd_secret though, we specifically don't map our pages via the direct map (i.e. we call set_direct_map_invalid_noflush() on every fault). So the address returned by page_address() isn't useful, and when we try to memset() with it we panic. This patch avoids the panic by implementing a custom setattr for memfd_secret, which detects resizes specifically (setting the size for the first time works just fine, since there are no existing pages to try to zero), and rejects them with EINVAL. One could argue growing should be supported, but I think that will require a significantly more lengthy change. So, I propose a minimal fix for the benefit of stable kernels, and then perhaps to extend memfd_secret to support growing in a separate patch. [1]: BUG: unable to handle page fault for address: ffffa0a889277028 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD afa01067 P4D afa01067 PUD 83f909067 PMD 83f8bf067 PTE 800ffffef6d88060 Oops: 0002 [#1] PREEMPT SMP DEBUG_PAGEALLOC PTI CPU: 0 PID: 281 Comm: repro Not tainted 5.17.0-dbg-DEV #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 RIP: 0010:memset_erms+0x9/0x10 Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 <f3> aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 RSP: 0018:ffffb932c09afbf0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffda63c4249dc0 RCX: 0000000000000fd8 RDX: 0000000000000fd8 RSI: 0000000000000000 RDI: ffffa0a889277028 RBP: ffffb932c09afc00 R08: 0000000000001000 R09: ffffa0a889277028 R10: 0000000000020023 R11: 0000000000000000 R12: ffffda63c4249dc0 R13: ffffa0a890d70d98 R14: 0000000000000028 R15: 0000000000000fd8 FS: 00007f7294899580(0000) GS:ffffa0af9bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffa0a889277028 CR3: 0000000107ef6006 CR4: 0000000000370ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ? zero_user_segments+0x82/0x190 truncate_inode_partial_folio+0xd4/0x2a0 truncate_inode_pages_range+0x380/0x830 truncate_setsize+0x63/0x80 simple_setattr+0x37/0x60 notify_change+0x3d8/0x4d0 do_sys_ftruncate+0x162/0x1d0 __x64_sys_ftruncate+0x1c/0x20 do_syscall_64+0x44/0xa0 entry_SYSCALL_64_after_hwframe+0x44/0xae Modules linked in: xhci_pci xhci_hcd virtio_net net_failover failover virtio_blk virtio_balloon uhci_hcd ohci_pci ohci_hcd evdev ehci_pci ehci_hcd 9pnet_virtio 9p netfs 9pnet CR2: ffffa0a889277028 [[email protected]: secretmem_iops can be static] [[email protected]: return EINVAL]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < b6d17c67885a5624e96eb30c4178c65eea8374bf (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 9d3b877daf805fed29be8f61aa3d0ea37df82c7b (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < f9b141f93659e09a52e28791ccbaf69c273b8e92 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.35 through 5.15.* (unaffected · semver)5.17.4 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

mm/secretmem: fix panic when growing a memfd_secret

Provenance

Schema
5.2
Searchable
yes
Content hash
df401fec55557d8d83bc2cb3e1e42ed4df46c44d77db7d8e58869e71c2cc431e
Ingested
23 Sep 2026, 08:04:03 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected