Cloudanix VulnDB

CVE-2022-3646

Medium · 4.3

CVSS

4.3

EPSS

1.1%

Published

Oct 21, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Linux kernel can slowly use up memory when certain file-system operations are performed, potentially making the computer slower or unresponsive until the system is updated.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Denial Of Service
Component
OS kernel
Class
Memory Corruption
Remediation
Patch
Effort
Medium
Patch risk
Medium

What it actually does

The flaw in nilfs_attach_log_writer within fs/nilfs2/segment.c allows an attacker to trigger a memory leak through crafted input to the BPF component, gradually exhausting kernel memory resources without releasing allocated structures.

Why it matters to the business

Systems running affected Linux kernels may experience gradual performance degradation or denial of service under sustained load, increasing operational costs and risk of unplanned downtime on file-system-dependent workloads; the issue affects widely used kernel code but carries low urgency given its age and lack of active exploitation.

How an attack unfolds

An attacker with low-privileged remote access crafts specific inputs that invoke nilfs_attach_log_writer, causing repeated allocation without corresponding deallocation; over time this leads to memory pressure that can impair system stability, though no public exploit code or named threat actor campaigns have materialized since disclosure.

How to fix it

Upgrade to fixed kernel versions or apply the referenced patch (e.g., commit d0ffa05fe8b8fb258d6c177ff0427dd71d7d5210 for quarkusio/quarkus); Ubuntu users should install mysql-8.0 packages 8.0.27-0ubuntu0.20.04.1 or 8.0.27-0ubuntu0.21.10.1 as appropriate for their release; verify the update resolves the memory-leak path in segment.c.

How to confirm the fix worked

Confirm the running kernel and package versions match or exceed the listed fixed releases, then exercise NILFS2/BPF workloads while monitoring kernel memory counters for leaks; review changelog entries for segment.c to verify the allocation fix is present.

Typical attack path

  1. Obtain low-privileged remote access to a target system running an affected kernel with NILFS2 support
  2. Identify or trigger code paths that call nilfs_attach_log_writer via the BPF subsystem
  3. Repeatedly submit crafted inputs that allocate kernel memory without release
  4. Monitor for memory exhaustion symptoms that impact availability

How to detect it

Review kernel logs and memory usage statistics for sustained growth without corresponding workload increases; look for repeated invocations of nilfs_attach_log_writer in traces or audit records on systems that have not yet been patched.

What your security team should do

  • Prioritize patching Linux kernels on any systems that expose NILFS2 or BPF interfaces, even with low EPSS, to eliminate the memory-leak vector
  • Monitor upstream kernel advisories for backports to older supported releases
  • Limit untrusted local or remote access to BPF and file-system operations until patches are applied

The record

A vulnerability, which was classified as problematic, has been found in Linux Kernel. This issue affects the function nilfs_attach_log_writer of the file fs/nilfs2/segment.c of the component BPF. The manipulation leads to memory leak. The attack may be initiated remotely. It is recommended to apply a patch to fix this issue. The identifier VDB-211961 was assigned to this vulnerability.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard hyperv-daemons 0 0
Chainguard hyperv-daemons-6.12 0 0
Chainguard hyperv-daemons-6.18 0 0
Chainguard hyperv-daemons-generic 0 0
Chainguard linux 0 0
Chainguard linux-aws-6.12 0 6.12.63-r0
Chainguard linux-aws-6.12 0 6.12.65-r0
Chainguard linux-aws-6.12-boot-installed 0 0
Chainguard linux-aws-6.12-fips-boot-installed 0 0
Chainguard linux-aws-6.12-headers 0 0
Chainguard linux-aws-6.12-modules 0 0
Chainguard linux-aws-6.18 0 6.18.4-r0
Chainguard linux-aws-6.18-boot-installed 0 0
Chainguard linux-aws-6.18-fips-boot-installed 0 0
Chainguard linux-aws-6.18-headers 0 0
Chainguard linux-aws-6.18-modules 0 0
Chainguard linux-aws-generic 0 6.18.3-r0
Chainguard linux-aws-generic 0 6.18.5-r0
Chainguard linux-aws-generic-boot-configuration 0 0
Chainguard linux-aws-generic-boot-installed 0 0
Chainguard linux-aws-generic-fips-boot-installed 0 0
Chainguard linux-aws-generic-headers 0 0
Chainguard linux-aws-generic-modules 0 0
Chainguard linux-azure-6.12 0 6.12.63-r0
Chainguard linux-azure-6.12 0 6.12.65-r1
Chainguard linux-azure-6.12-boot-installed 0 0
Chainguard linux-azure-6.12-fips-boot-installed 0 0
Chainguard linux-azure-6.12-headers 0 0
Chainguard linux-azure-6.12-modules 0 0
Chainguard linux-azure-6.18 0 0
Chainguard linux-azure-6.18-boot-installed 0 0
Chainguard linux-azure-6.18-fips-boot-installed 0 0
Chainguard linux-azure-6.18-headers 0 0
Chainguard linux-azure-6.18-modules 0 0
Chainguard linux-azure-generic 0 6.18.3-r0
Chainguard linux-azure-generic 0 6.18.5-r0
Chainguard linux-azure-generic-boot-configuration 0 0
Chainguard linux-azure-generic-boot-installed 0 0
Chainguard linux-azure-generic-fips-boot-installed 0 0
Chainguard linux-azure-generic-headers 0 0
Chainguard linux-azure-generic-modules 0 0
Chainguard linux-boot-configuration 0 0
Chainguard linux-boot-installed 0 0
Chainguard linux-gcp-6.12 0 6.12.63-r0
Chainguard linux-gcp-6.12 0 6.12.65-r0
Chainguard linux-gcp-6.12-boot-installed 0 0
Chainguard linux-gcp-6.12-fips-boot-installed 0 0
Chainguard linux-gcp-6.12-headers 0 0
Chainguard linux-gcp-6.12-modules 0 0
Chainguard linux-gcp-6.18 0 6.18.4-r0
Chainguard linux-gcp-6.18-boot-installed 0 0
Chainguard linux-gcp-6.18-fips-boot-installed 0 0
Chainguard linux-gcp-6.18-headers 0 0
Chainguard linux-gcp-6.18-modules 0 0
Chainguard linux-gcp-generic 0 6.18.3-r0
Chainguard linux-gcp-generic 0 6.18.5-r0
Chainguard linux-gcp-generic-boot-installed 0 0
Chainguard linux-gcp-generic-fips-boot-installed 0 0
Chainguard linux-gcp-generic-headers 0 0
Chainguard linux-gcp-generic-modules 0 0
Chainguard linux-modules 0 0
Chainguard linux-qemu-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-headers 0 6.12.63-r0
Chainguard linux-qemu-6.12-modules 0 6.12.63-r0
Chainguard linux-qemu-6.18 0 6.18.7-r0
Chainguard linux-qemu-6.18-boot-installed 0 6.18.2-r0
Chainguard linux-qemu-6.18-fips-boot-installed 0 6.18.2-r0
Chainguard linux-qemu-6.18-headers 0 6.18.2-r0
Chainguard linux-qemu-6.18-modules 0 6.18.2-r0
Chainguard linux-qemu-generic 0 6.18.3-r0
Chainguard linux-qemu-generic 0 6.18.5-r0
Chainguard linux-qemu-generic-boot-installed 0 0
Chainguard linux-qemu-generic-bootc-boot-installed 0 6.18.4-r0
Chainguard linux-qemu-generic-bootc-boot-installed 0 6.18.5-r0
Chainguard linux-qemu-generic-fips-boot-installed 0 0
Chainguard linux-qemu-generic-headers 0 0
Chainguard linux-qemu-generic-modules 0 0
Chainguard linux-qemu-rc 0 6.19_rc4-r0
Chainguard linux-qemu-rc 0 6.19_rc5-r0
Chainguard linux-qemu-rc-boot-installed 0 0
Chainguard linux-qemu-rc-fips-boot-installed 0 0
Chainguard linux-qemu-rc-headers 0 0
Chainguard linux-qemu-rc-modules 0 0
Chainguard linux-vmware-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-headers 0 6.12.63-r0
Chainguard linux-vmware-6.12-modules 0 6.12.63-r0
Chainguard linux-vmware-6.18-boot-installed 0 6.18.2-r0
Chainguard linux-vmware-6.18-fips-boot-installed 0 6.18.2-r0
Chainguard linux-vmware-6.18-headers 0 6.18.2-r0
Chainguard linux-vmware-6.18-modules 0 6.18.2-r0
Chainguard linux-vmware-generic 0 6.18.3-r0
Chainguard linux-vmware-generic 0 6.18.5-r0
Chainguard linux-vmware-generic-boot-installed 0 0
Chainguard linux-vmware-generic-fips-boot-installed 0 0
Chainguard linux-vmware-generic-headers 0 0
Chainguard linux-vmware-generic-modules 0 0
Debian:10 linux 0 4.19.269-1
Debian:10 linux-5.10 0 5.10.149-2~deb10u1
Debian:11 linux 0 5.10.148-1
Debian:12 linux 0 6.0.2-1
Debian:13 linux 0 6.0.2-1
SUSE:Enterprise Storage 6 kernel-default 0 4.12.14-150100.197.131.1
SUSE:Enterprise Storage 6 kernel-docs 0 4.12.14-150100.197.131.1
SUSE:Enterprise Storage 6 kernel-obs-build 0 4.12.14-150100.197.131.1
SUSE:Enterprise Storage 6 kernel-source 0 4.12.14-150100.197.131.1
SUSE:Enterprise Storage 6 kernel-syms 0 4.12.14-150100.197.131.1
SUSE:Enterprise Storage 7 kernel-default 0 5.3.18-150200.24.139.1
SUSE:Enterprise Storage 7 kernel-default-base 0 5.3.18-150200.24.139.1.150200.9.65.2
SUSE:Enterprise Storage 7 kernel-docs 0 5.3.18-150200.24.139.1
SUSE:Enterprise Storage 7 kernel-obs-build 0 5.3.18-150200.24.139.1
SUSE:Enterprise Storage 7 kernel-preempt 0 5.3.18-150200.24.139.1
SUSE:Enterprise Storage 7 kernel-source 0 5.3.18-150200.24.139.1
SUSE:Enterprise Storage 7 kernel-syms 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Availability Extension 12 SP4 kernel-default 0 4.12.14-95.114.1
SUSE:Linux Enterprise High Availability Extension 12 SP5 kernel-default 0 4.12.14-122.139.1
SUSE:Linux Enterprise High Availability Extension 15 kernel-default 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Availability Extension 15 SP1 kernel-default 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Availability Extension 15 SP2 kernel-default 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Availability Extension 15 SP3 kernel-default 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise High Availability Extension 15 SP4 kernel-default 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-default 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-docs 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-obs-build 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-source 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-syms 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-default 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-docs 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-obs-build 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-source 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-syms 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-default 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-default-base 0 5.3.18-150200.24.139.1.150200.9.65.2
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-docs 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-obs-build 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-preempt 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-source 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-syms 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-default 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-default-base 0 5.3.18-150200.24.139.1.150200.9.65.2
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-docs 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-obs-build 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-preempt 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-source 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-syms 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-default 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-docs 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-obs-build 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-source 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-syms 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-vanilla 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-default 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-docs 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-obs-build 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-source 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-syms 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-vanilla 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise Live Patching 12 SP4 kernel-default 0 4.12.14-95.114.1
SUSE:Linux Enterprise Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_32 0 1-6.3.1
SUSE:Linux Enterprise Live Patching 12 SP5 kernel-default 0 4.12.14-122.139.1
SUSE:Linux Enterprise Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_37 0 1-8.3.1
SUSE:Linux Enterprise Live Patching 15 kernel-default 0 4.12.14-150000.150.109.1
SUSE:Linux Enterprise Live Patching 15 kernel-livepatch-SLE15_Update_35 0 1-150000.1.5.1
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-default 0 4.12.14-150100.197.131.1
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_36 0 1-150100.3.5.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-default 0 5.3.18-150200.24.139.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_32 0 1-150200.5.5.1
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-default 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_26 0 1-150300.7.3.1
SUSE:Linux Enterprise Live Patching 15 SP4 kernel-default 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Live Patching 15 SP4 kernel-livepatch-SLE15-SP4-RT_Update_1 0 1-150400.1.3.1
SUSE:Linux Enterprise Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_5 0 1-150400.9.3.4
SUSE:Linux Enterprise Micro 5.1 kernel-default 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Micro 5.1 kernel-default-base 0 5.3.18-150300.59.101.1.150300.18.58.1
SUSE:Linux Enterprise Micro 5.1 kernel-rt 0 5.3.18-150300.109.1
SUSE:Linux Enterprise Micro 5.2 kernel-default 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Micro 5.2 kernel-default-base 0 5.3.18-150300.59.101.1.150300.18.58.1
SUSE:Linux Enterprise Micro 5.2 kernel-rt 0 5.3.18-150300.109.1
SUSE:Linux Enterprise Micro 5.3 kernel-default 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Micro 5.3 kernel-default-base 0 5.14.21-150400.24.33.2.150400.24.11.4
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-64kb 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default-base 0 5.3.18-150300.59.101.1.150300.18.58.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-preempt 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-source 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-zfcpdump 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 kernel-64kb 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Module for Basesystem 15 SP4 kernel-default 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Module for Basesystem 15 SP4 kernel-default-base 0 5.14.21-150400.24.33.2.150400.24.11.4
SUSE:Linux Enterprise Module for Basesystem 15 SP4 kernel-source 0 5.14.21-150400.24.33.1
SUSE:Linux Enterprise Module for Basesystem 15 SP4 kernel-zfcpdump 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-docs 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-obs-build 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-preempt 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-source 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-syms 0 5.3.18-150300.59.101.1
SUSE:Linux Enterprise Module for Development Tools 15 SP4 kernel-docs 0 5.14.21-150400.24.33.2
SUSE:Linux Enterprise Module for Development Tools 15 SP4 kernel-obs-build 0 5.14.21-150400.24.33.1
SUSE:Linux Enterprise Module for Development Tools 15 SP4 kernel-source 0 5.14.21-150400.24.33.1

Related vulnerabilities