Cloudanix VulnDB

CVE-2022-48659

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Apr 28, 2024

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in the Linux kernel can make the whole computer crash when trying to use certain file systems if memory is low.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Other
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

A missing error check on kmalloc failure in create_unique_id allows a BUG_ON assertion to trigger a kernel panic instead of returning an error code when creating SLUB caches for certain filesystems.

Why it matters to the business

Systems running affected kernels may experience unexpected crashes during filesystem mount operations under memory pressure, leading to downtime and potential data loss for workloads using F2FS.

How an attack unfolds

An attacker with local access triggers repeated mount attempts of an F2FS filesystem while the system is under memory pressure, causing the unhandled kmalloc failure path during xattr cache initialization to invoke the BUG handler and panic the kernel.

How to fix it

Upgrade to a Linux kernel containing commit e9219fa63c5c25804af82c7aa54d1ec770ebe457 or later; apply the fix that properly returns errno on kmalloc failure instead of calling BUG_ON.

How to confirm the fix worked

Confirm the running kernel includes the referenced commit or a backported equivalent; attempt F2FS mounts under simulated memory pressure to verify no panic occurs and errors are handled gracefully.

Typical attack path

  1. Obtain local user access on a Linux system using an affected kernel
  2. Induce memory pressure on the target system
  3. Attempt to mount an F2FS filesystem
  4. Trigger the kmalloc failure in create_unique_id during xattr cache setup
  5. Cause kernel BUG and system panic

How to detect it

Review kernel logs for BUG reports at mm/slub.c during f2fs_fill_super or sysfs_slab_add; look for Oops entries tied to kmem_cache_create failures on F2FS mounts.

What your security team should do

  • Prioritize kernel updates on all systems using F2FS filesystems
  • Monitor for kernel oops and BUG reports referencing mm/slub.c during mount operations
  • Apply the fix from commit e9219fa63c5c25804af82c7aa54d1ec770ebe457 where possible

The record

In the Linux kernel, the following vulnerability has been resolved: mm/slub: fix to return errno if kmalloc() fails In create_unique_id(), kmalloc(, GFP_KERNEL) can fail due to out-of-memory, if it fails, return errno correctly rather than triggering panic via BUG_ON(); kernel BUG at mm/slub.c:5893! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Call trace: sysfs_slab_add+0x258/0x260 mm/slub.c:5973 __kmem_cache_create+0x60/0x118 mm/slub.c:4899 create_cache mm/slab_common.c:229 [inline] kmem_cache_create_usercopy+0x19c/0x31c mm/slab_common.c:335 kmem_cache_create+0x1c/0x28 mm/slab_common.c:390 f2fs_kmem_cache_create fs/f2fs/f2fs.h:2766 [inline] f2fs_init_xattr_caches+0x78/0xb4 fs/f2fs/xattr.c:808 f2fs_fill_super+0x1050/0x1e0c fs/f2fs/super.c:4149 mount_bdev+0x1b8/0x210 fs/super.c:1400 f2fs_mount+0x44/0x58 fs/f2fs/super.c:4512 legacy_get_tree+0x30/0x74 fs/fs_context.c:610 vfs_get_tree+0x40/0x140 fs/super.c:1530 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040 path_mount+0x358/0x914 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __arm64_sys_mount+0x2f8/0x408 fs/namespace.c:3568

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 5.10.148-1
Debian:12 linux 0 6.0.2-1
Debian:13 linux 0 6.0.2-1
Linux Kernel 2.6.22 4.9.330
Red Hat:rhel_aus:8.6::baseos bpftool 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos bpftool-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-abi-stablelists 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debug-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-debuginfo-common-x86_64 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-tools 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-tools-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos kernel-tools-libs 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos python3-perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_aus:8.6::baseos python3-perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos bpftool 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos bpftool-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-abi-stablelists 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debug-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debuginfo-common-aarch64 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debuginfo-common-ppc64le 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debuginfo-common-s390x 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-debuginfo-common-x86_64 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-tools 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-tools-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-tools-libs 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos kernel-zfcpdump-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos python3-perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_e4s:8.6::baseos python3-perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos bpftool 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos bpftool-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-abi-stablelists 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug-core 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debug-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-debuginfo-common-x86_64 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-devel 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-modules 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-modules-extra 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-tools 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-tools-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos kernel-tools-libs 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos python3-perf 0 0:4.18.0-372.121.1.el8_6
Red Hat:rhel_tus:8.6::baseos python3-perf-debuginfo 0 0:4.18.0-372.121.1.el8_6
SUSE:Linux Enterprise High Availability Extension 15 SP5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Live Patching 15 SP5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Live Patching 15 SP5 kernel-livepatch-SLE15-SP5-RT_Update_14 0 1-150500.11.5.1
SUSE:Linux Enterprise Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_13 0 1-150500.11.3.2
SUSE:Linux Enterprise Micro 5.5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Micro 5.5 kernel-default-base 0 5.14.21-150500.55.62.2.150500.6.27.2
SUSE:Linux Enterprise Micro 5.5 kernel-rt 0 5.14.21-150500.13.52.1
SUSE:Linux Enterprise Micro 5.5 kernel-source-rt 0 5.14.21-150500.13.52.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 kernel-64kb 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Basesystem 15 SP5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Basesystem 15 SP5 kernel-default-base 0 5.14.21-150500.55.62.2.150500.6.27.2
SUSE:Linux Enterprise Module for Basesystem 15 SP5 kernel-source 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Basesystem 15 SP5 kernel-zfcpdump 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Development Tools 15 SP5 kernel-docs 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Development Tools 15 SP5 kernel-obs-build 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Development Tools 15 SP5 kernel-source 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Development Tools 15 SP5 kernel-syms 0 5.14.21-150500.55.62.1
SUSE:Linux Enterprise Module for Legacy 15 SP5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP5 kernel-azure 0 5.14.21-150500.33.51.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP5 kernel-source-azure 0 5.14.21-150500.33.51.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP5 kernel-syms-azure 0 5.14.21-150500.33.51.1
SUSE:Linux Enterprise Workstation Extension 15 SP5 kernel-default 0 5.14.21-150500.55.62.2
SUSE:Real Time Module 15 SP5 kernel-rt 0 5.14.21-150500.13.52.1
SUSE:Real Time Module 15 SP5 kernel-rt_debug 0 5.14.21-150500.13.52.1
SUSE:Real Time Module 15 SP5 kernel-source-rt 0 5.14.21-150500.13.52.1
SUSE:Real Time Module 15 SP5 kernel-syms-rt 0 5.14.21-150500.13.52.1
Ubuntu:16.04:LTS linux-hwe-edge 0 No fix
Ubuntu:18.04:LTS linux 0 4.15.0-204.215
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1150.163
Ubuntu:18.04:LTS linux-aws-5.0 0 No fix
Ubuntu:18.04:LTS linux-aws-5.3 0 No fix
Ubuntu:18.04:LTS linux-aws-5.4 0 5.4.0-1093.102~18.04.2
Ubuntu:18.04:LTS linux-azure 0 No fix
Ubuntu:18.04:LTS linux-azure-4.15 0 4.15.0-1161.176
Ubuntu:18.04:LTS linux-azure-5.3 0 No fix
Ubuntu:18.04:LTS linux-azure-5.4 0 5.4.0-1100.106~18.04.1
Ubuntu:18.04:LTS linux-azure-edge 0 No fix
Ubuntu:18.04:LTS linux-gcp 0 No fix
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1145.161
Ubuntu:18.04:LTS linux-gcp-5.3 0 No fix
Ubuntu:18.04:LTS linux-gcp-5.4 0 5.4.0-1097.106~18.04.1
Ubuntu:18.04:LTS linux-gke-4.15 0 No fix
Ubuntu:18.04:LTS linux-gke-5.4 0 No fix
Ubuntu:18.04:LTS linux-gkeop-5.4 0 No fix
Ubuntu:18.04:LTS linux-hwe 0 No fix
Ubuntu:18.04:LTS linux-hwe-5.4 0 5.4.0-136.153~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge 0 No fix
Ubuntu:18.04:LTS linux-ibm-5.4 0 5.4.0-1041.46~18.04.1
Ubuntu:18.04:LTS linux-kvm 0 4.15.0-1135.140
Ubuntu:18.04:LTS linux-oem 0 No fix
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1114.125
Ubuntu:18.04:LTS linux-oracle-5.0 0 No fix
Ubuntu:18.04:LTS linux-oracle-5.3 0 No fix
Ubuntu:18.04:LTS linux-oracle-5.4 0 5.4.0-1091.100~18.04.1
Ubuntu:18.04:LTS linux-raspi-5.4 0 5.4.0-1078.89~18.04.1
Ubuntu:20.04:LTS linux 0 No fix
Ubuntu:20.04:LTS linux 0 5.4.0-136.153
Ubuntu:20.04:LTS linux-aws 0 No fix
Ubuntu:20.04:LTS linux-aws 0 5.4.0-1093.101
Ubuntu:20.04:LTS linux-aws-5.11 0 No fix
Ubuntu:20.04:LTS linux-aws-5.13 0 No fix
Ubuntu:20.04:LTS linux-aws-5.15 0 No fix
Ubuntu:20.04:LTS linux-aws-5.15 0 5.15.0-1027.31~20.04.1
Ubuntu:20.04:LTS linux-aws-5.8 0 No fix
Ubuntu:20.04:LTS linux-azure 0 No fix
Ubuntu:20.04:LTS linux-azure 0 5.4.0-1100.106
Ubuntu:20.04:LTS linux-azure-5.11 0 No fix
Ubuntu:20.04:LTS linux-azure-5.13 0 No fix
Ubuntu:20.04:LTS linux-azure-5.15 0 No fix
Ubuntu:20.04:LTS linux-azure-5.15 0 5.15.0-1030.37~20.04.1
Ubuntu:20.04:LTS linux-azure-5.8 0 No fix
Ubuntu:20.04:LTS linux-azure-fde 0 No fix
Ubuntu:20.04:LTS linux-azure-fde-5.15 0 5.15.0-1030.37~20.04.1.1
Ubuntu:20.04:LTS linux-bluefield 0 No fix
Ubuntu:20.04:LTS linux-bluefield 0 5.4.0-1054.60
Ubuntu:20.04:LTS linux-gcp 0 No fix
Ubuntu:20.04:LTS linux-gcp 0 5.4.0-1097.106
Ubuntu:20.04:LTS linux-gcp-5.11 0 No fix
Ubuntu:20.04:LTS linux-gcp-5.13 0 No fix
Ubuntu:20.04:LTS linux-gcp-5.15 0 No fix
Ubuntu:20.04:LTS linux-gcp-5.15 0 5.15.0-1026.33~20.04.1
Ubuntu:20.04:LTS linux-gcp-5.15 0 5.15.0-1027.34~20.04.1
Ubuntu:20.04:LTS linux-gcp-5.8 0 No fix
Ubuntu:20.04:LTS linux-gke 0 No fix
Ubuntu:20.04:LTS linux-gke-5.15 0 No fix
Ubuntu:20.04:LTS linux-gkeop 0 No fix
Ubuntu:20.04:LTS linux-gkeop 0 5.4.0-1061.65
Ubuntu:20.04:LTS linux-gkeop-5.15 0 No fix
Ubuntu:20.04:LTS linux-gkeop-5.15 0 5.15.0-1012.16~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.11 0 No fix
Ubuntu:20.04:LTS linux-hwe-5.13 0 No fix
Ubuntu:20.04:LTS linux-hwe-5.15 0 No fix
Ubuntu:20.04:LTS linux-hwe-5.15 0 5.15.0-57.63~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.8 0 No fix
Ubuntu:20.04:LTS linux-ibm 0 No fix
Ubuntu:20.04:LTS linux-ibm 0 5.4.0-1041.46
Ubuntu:20.04:LTS linux-ibm-5.15 0 5.15.0-1033.36~20.04.1
Ubuntu:20.04:LTS linux-intel-5.13 0 No fix
Ubuntu:20.04:LTS linux-intel-iotg-5.15 0 No fix
Ubuntu:20.04:LTS linux-intel-iotg-5.15 0 5.15.0-1023.28~20.04.1
Ubuntu:20.04:LTS linux-iot 0 No fix
Ubuntu:20.04:LTS linux-iot 0 5.4.0-1010.12
Ubuntu:20.04:LTS linux-kvm 0 No fix
Ubuntu:20.04:LTS linux-kvm 0 5.4.0-1083.89
Ubuntu:20.04:LTS linux-lowlatency-hwe-5.15 0 No fix
Ubuntu:20.04:LTS linux-lowlatency-hwe-5.15 0 5.15.0-58.64~20.04.1
Ubuntu:20.04:LTS linux-oem-5.10 0 No fix
Ubuntu:20.04:LTS linux-oem-5.13 0 No fix
Ubuntu:20.04:LTS linux-oem-5.14 0 No fix
Ubuntu:20.04:LTS linux-oem-5.6 0 No fix
Ubuntu:20.04:LTS linux-oracle 0 No fix
Ubuntu:20.04:LTS linux-oracle 0 5.4.0-1091.100
Ubuntu:20.04:LTS linux-oracle-5.11 0 No fix
Ubuntu:20.04:LTS linux-oracle-5.13 0 No fix
Ubuntu:20.04:LTS linux-oracle-5.15 0 No fix
Ubuntu:20.04:LTS linux-oracle-5.15 0 5.15.0-1027.33~20.04.1
Ubuntu:20.04:LTS linux-oracle-5.8 0 No fix
Ubuntu:20.04:LTS linux-raspi 0 No fix

Related vulnerabilities