cve.bz

CVE-2022-49846 linux linux kernel: Out-of-bounds Write

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: udf: Fix a slab-out-of-bounds write bug in udf_find_entry() Syzbot reported a slab-out-of-bounds Write bug: loop0: detected capacity change from 0 to 2048 ================================================================== BUG: KASAN: slab-out-of-bounds in udf_find_entry+0x8a5/0x14f0 fs/udf/namei.c:253 Write of size 105 at addr ffff8880123ff896 by task syz-executor323/3610 CPU: 0 PID: 3610 Comm: syz-executor323 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0 Hardware name: Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 memcpy+0x3c/0x60 mm/kasan/shadow.c:66 udf_find_entry+0x8a5/0x14f0 fs/udf/namei.c:253 udf_lookup+0xef/0x340 fs/udf/namei.c:309 lookup_open fs/namei.c:3391 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x10e6/0x2df0 fs/namei.c:3710 do_filp_open+0x264/0x4f0 fs/namei.c:3740 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_creat fs/open.c:1402 [inline] __se_sys_creat fs/open.c:1396 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1396 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ffab0d164d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe1a7e6bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ffab0d164d9 RDX: 00007ffab0d164d9 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 00007ffab0cd5a10 R08: 0000000000000000 R09: 0000000000000000 R10: 00005555573552c0 R11: 0000000000000246 R12: 00007ffab0cd5aa0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 </TASK> Allocated by task 3610: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kmalloc include/linux/slab.h:576 [inline] udf_find_entry+0x7b6/0x14f0 fs/udf/namei.c:243 udf_lookup+0xef/0x340 fs/udf/namei.c:309 lookup_open fs/namei.c:3391 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x10e6/0x2df0 fs/namei.c:3710 do_filp_open+0x264/0x4f0 fs/namei.c:3740 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_creat fs/open.c:1402 [inline] __se_sys_creat fs/open.c:1396 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1396 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880123ff800 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 150 bytes inside of 256-byte region [ffff8880123ff800, ffff8880123ff900) The buggy address belongs to the physical page: page:ffffea000048ff80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x123fe head:ffffea000048ff80 order:1 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea00004b8500 dead000000000003 ffff888012041b40 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x0(), pid 1, tgid 1 (swapper/0), ts 1841222404, free_ts 0 create_dummy_stack mm/page_owner.c: ---truncated---

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-49846 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-49846?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-49846?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-49846 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.6 and later

Fixed in

ProductRelease lineFixed in
Linux4.94.9.334
Linux4.144.14.300
Linux4.194.19.267
Linux5.45.4.225
Linux5.105.10.155
Linux5.155.15.79
Linux6.06.0.9
Linuxlater releases6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux6.0.10-1DEBIAN-CVE-2022-49846
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux4.15.0-206.217UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-aws4.15.0-1151.164UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1097.105~18.04.1UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1162.177UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1104.110~18.04.1UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1146.162UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1101.110~18.04.1UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-144.161~18.04.1UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-ibm-5.45.4.0-1045.50~18.04.1UBUNTU-CVE-2022-49846
Ubuntu18.04:LTSlinux-kvm4.15.0-1136.141UBUNTU-CVE-2022-49846
56 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553, kpatch-patch-4_18_0-553-debuginfo, kpatch-patch-4_18_0-553-debugsource0:1-7.el8_10RHSA-2025:10977
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_16_1, kpatch-patch-4_18_0-553_16_1-debuginfo, kpatch-patch-4_18_0-553_16_1-debugsource0:1-6.el8_10RHSA-2025:10977
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_30_1, kpatch-patch-4_18_0-553_30_1-debuginfo, kpatch-patch-4_18_0-553_30_1-debugsource0:1-5.el8_10RHSA-2025:10977
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_40_1, kpatch-patch-4_18_0-553_40_1-debuginfo, kpatch-patch-4_18_0-553_40_1-debugsource0:1-3.el8_10RHSA-2025:10977
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_53_1, kpatch-patch-4_18_0-553_53_1-debuginfo, kpatch-patch-4_18_0-553_53_1-debugsource0:1-1.el8_10RHSA-2025:10977
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.60.1.el8_10RHSA-2025:10669
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.60.1.el8_10RHSA-2025:10669
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.60.1.rt7.401.el8_10RHSA-2025:10670
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.60.1.rt7.401.el8_10RHSA-2025:10670
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.25.1.el9_6RHSA-2025:10379
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.25.1.el9_6RHSA-2025:10379
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-570_17_1, kpatch-patch-5_14_0-570_17_1-debuginfo, kpatch-patch-5_14_0-570_17_1-debugsource0:1-4.el9_6RHSA-2025:10981
51 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.207.1SUSE-SU-2025:01982-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.207.1.150300.18.124.1SUSE-SU-2025:01982-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.207.1SUSE-SU-2025:01982-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.167.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.167.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.167.1.150400.24.84.1SUSE-SU-2025:02262-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.110.1SUSE-SU-2025:02173-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.110.1.150500.6.51.3SUSE-SU-2025:02173-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.261.1SUSE-SU-2025:01983-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_691-8.3.1SUSE-SU-2025:01983-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_581-150300.7.3.1SUSE-SU-2025:01982-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_411-150400.9.3.1SUSE-SU-2025:02262-1
15 more for SUSE in the JSON and on SUSE's page.
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.60.1.rt7.401.el8_10ALSA-2025:10670
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.60.1.el8_10ALSA-2025:10669
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.25.1.el9_6ALSA-2025:10379
Rocky Linux9kernel0:5.14.0-570.25.1.el9_6RLSA-2025:10379

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A slab-out-of-bounds write was discovered in udf_find_entry() due to incorrect allocation size when handling long filenames in split name descriptors. This can be triggered by mounting a crafted UDF image and attempting to create a file with a specially constructed name. Although local privileges are required, the flaw allows kernel memory corruption, leading to potential privilege escalation or DoS.

Red Hat's mitigation

To mitigate this issue, prevent module udf from being loaded. Please see https://access.redhat.com/solutions/41278 for how to blacklist a kernel module to prevent it from loading automatically.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.60.1.rt7.401.el8_10Fixed 2025-07-09RHSA-2025:10670
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.60.1.el8_10Fixed 2025-07-09RHSA-2025:10669
Red Hat Enterprise Linux 8kpatch-patchFixed 2025-07-14RHSA-2025:10977
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.159.1.el8_2Fixed 2025-07-10RHSA-2025:10761
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.162.1.el8_4Fixed 2025-07-14RHSA-2025:10828
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.162.1.el8_4Fixed 2025-07-14RHSA-2025:10828
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.151.1.el8_6Fixed 2025-07-09RHSA-2025:10673
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.151.1.el8_6Fixed 2025-07-09RHSA-2025:10673
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.151.1.el8_6Fixed 2025-07-09RHSA-2025:10673
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskpatch-patchFixed 2025-07-14RHSA-2025:10976
Red Hat Enterprise Linux 8.8 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-477.101.1.el8_8Fixed 2025-07-14RHSA-2025:10834
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.101.1.el8_8Fixed 2025-07-14RHSA-2025:10834
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.101.1.el8_8Fixed 2025-07-14RHSA-2025:10834
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskpatch-patchFixed 2025-07-14RHSA-2025:10974
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.25.1.el9_6Fixed 2025-07-07RHSA-2025:10379
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-49846.

References

Check your stackJSON