Upstream information

CVE-2022-24795 at MITRE

Description

yajl-ruby is a C binding to the YAJL JSON parsing and generation library. The 1.x branch and the 2.x branch of `yajl` contain an integer overflow which leads to subsequent heap memory corruption when dealing with large (~2GB) inputs. The reallocation logic at `yajl_buf.c#L64` may result in the `need` 32bit integer wrapping to 0 when `need` approaches a value of 0x80000000 (i.e. ~2GB of data), which results in a reallocation of buf->alloc into a small heap chunk. These integers are declared as `size_t` in the 2.x branch of `yajl`, which practically prevents the issue from triggering on 64bit platforms, however this does not preclude this issue triggering on 32bit builds on which `size_t` is a 32bit integer. Subsequent population of this under-allocated heap chunk is based on the original buffer size, leading to heap memory corruption. This vulnerability mostly impacts process availability. Maintainers believe exploitation for arbitrary code execution is unlikely. A patch is available and anticipated to be part of yajl-ruby version 1.4.2. As a workaround, avoid passing large inputs to YAJL.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having moderate severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 5
Vector AV:N/AC:L/Au:N/C:P/I:N/A:N
Access Vector Network
Access Complexity Low
Authentication None
Confidentiality Impact Partial
Integrity Impact None
Availability Impact None
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 7.5 5.9
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network Network
Attack Complexity Low High
Privileges Required None None
User Interaction None None
Scope Unchanged Unchanged
Confidentiality Impact None None
Integrity Impact None None
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1198405 [IN_PROGRESS]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
Image SLES12-SP4-SAP-Azure-LI-BYOS-Production
Image SLES12-SP4-SAP-Azure-VLI-BYOS-Production
Image SLES12-SP5-Azure-SAP-BYOS
Image SLES12-SP5-Azure-SAP-On-Demand
Image SLES12-SP5-EC2-BYOS
Image SLES12-SP5-EC2-ECS-On-Demand
Image SLES12-SP5-EC2-On-Demand
Image SLES12-SP5-EC2-SAP-BYOS
Image SLES12-SP5-EC2-SAP-On-Demand
Image SLES12-SP5-GCE-SAP-BYOS
Image SLES12-SP5-GCE-SAP-On-Demand
Image SLES12-SP5-SAP-Azure-LI-BYOS-Production
Image SLES12-SP5-SAP-Azure-VLI-BYOS-Production
  • libyajl2 >= 2.0.1-18.7.1
Image SLES15-SP1-SAPCAL-EC2-HVM
Image SLES15-SP2-BYOS-Azure
Image SLES15-SP2-BYOS-EC2-HVM
Image SLES15-SP2-BYOS-GCE
Image SLES15-SP2-HPC-BYOS-Azure
Image SLES15-SP2-HPC-BYOS-EC2-HVM
Image SLES15-SP2-SAP-Azure
Image SLES15-SP2-SAP-Azure-LI-BYOS-Production
Image SLES15-SP2-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP2-SAP-BYOS-Azure
Image SLES15-SP2-SAP-BYOS-EC2-HVM
Image SLES15-SP2-SAP-BYOS-GCE
Image SLES15-SP2-SAP-EC2-HVM
Image SLES15-SP2-SAP-GCE
Image SLES15-SP3-BYOS-Azure
Image SLES15-SP3-BYOS-EC2-HVM
Image SLES15-SP3-BYOS-GCE
Image SLES15-SP3-CHOST-BYOS-Aliyun
Image SLES15-SP3-CHOST-BYOS-Azure
Image SLES15-SP3-CHOST-BYOS-EC2
Image SLES15-SP3-CHOST-BYOS-GCE
Image SLES15-SP3-HPC-BYOS-Azure
Image SLES15-SP3-HPC-BYOS-EC2-HVM
Image SLES15-SP3-HPC-BYOS-GCE
Image SLES15-SP3-Manager-4-2-Proxy-BYOS-Azure
Image SLES15-SP3-Manager-4-2-Proxy-BYOS-EC2-HVM
Image SLES15-SP3-Manager-4-2-Proxy-BYOS-GCE
Image SLES15-SP3-Manager-4-2-Server-BYOS-Azure
Image SLES15-SP3-Manager-4-2-Server-BYOS-EC2-HVM
Image SLES15-SP3-Manager-4-2-Server-BYOS-GCE
Image SLES15-SP3-Micro-5-1-BYOS-Azure
Image SLES15-SP3-Micro-5-1-BYOS-EC2-HVM
Image SLES15-SP3-Micro-5-1-BYOS-GCE
Image SLES15-SP3-Micro-5-2-BYOS-Azure
Image SLES15-SP3-Micro-5-2-BYOS-EC2-HVM
Image SLES15-SP3-Micro-5-2-BYOS-GCE
Image SLES15-SP3-SAP-Azure-LI-BYOS-Production
Image SLES15-SP3-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP3-SAP-BYOS-Azure
Image SLES15-SP3-SAP-BYOS-EC2-HVM
Image SLES15-SP3-SAP-BYOS-GCE
Image SLES15-SP3-SAPCAL-Azure
Image SLES15-SP3-SAPCAL-EC2-HVM
Image SLES15-SP3-SAPCAL-GCE
Image SLES15-SP4
Image SLES15-SP4-Azure-Basic
Image SLES15-SP4-Azure-Standard
Image SLES15-SP4-BYOS
Image SLES15-SP4-BYOS-Azure
Image SLES15-SP4-BYOS-EC2
Image SLES15-SP4-BYOS-GCE
Image SLES15-SP4-CHOST-BYOS
Image SLES15-SP4-CHOST-BYOS-Aliyun
Image SLES15-SP4-CHOST-BYOS-Azure
Image SLES15-SP4-CHOST-BYOS-EC2
Image SLES15-SP4-CHOST-BYOS-GCE
Image SLES15-SP4-EC2
Image SLES15-SP4-EC2-ECS-HVM
Image SLES15-SP4-GCE
Image SLES15-SP4-HPC
Image SLES15-SP4-HPC-Azure
Image SLES15-SP4-HPC-BYOS
Image SLES15-SP4-HPC-BYOS-Azure
Image SLES15-SP4-HPC-BYOS-EC2
Image SLES15-SP4-HPC-BYOS-GCE
Image SLES15-SP4-HPC-EC2
Image SLES15-SP4-HPC-GCE
Image SLES15-SP4-Hardened-BYOS
Image SLES15-SP4-Hardened-BYOS-Azure
Image SLES15-SP4-Hardened-BYOS-EC2
Image SLES15-SP4-Hardened-BYOS-GCE
Image SLES15-SP4-Manager-Proxy-4-3-BYOS
Image SLES15-SP4-Manager-Proxy-4-3-BYOS-Azure
Image SLES15-SP4-Manager-Proxy-4-3-BYOS-EC2
Image SLES15-SP4-Manager-Proxy-4-3-BYOS-GCE
Image SLES15-SP4-Manager-Server-4-3-BYOS
Image SLES15-SP4-Manager-Server-4-3-BYOS-Azure
Image SLES15-SP4-Manager-Server-4-3-BYOS-EC2
Image SLES15-SP4-Manager-Server-4-3-BYOS-GCE
Image SLES15-SP4-Micro-5-3-BYOS
Image SLES15-SP4-Micro-5-3-BYOS-Azure
Image SLES15-SP4-Micro-5-3-BYOS-EC2
Image SLES15-SP4-Micro-5-3-BYOS-GCE
Image SLES15-SP4-SAP
Image SLES15-SP4-SAP-Azure
Image SLES15-SP4-SAP-Azure-LI-BYOS
Image SLES15-SP4-SAP-Azure-LI-BYOS-Production
Image SLES15-SP4-SAP-Azure-VLI-BYOS
Image SLES15-SP4-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP4-SAP-BYOS
Image SLES15-SP4-SAP-BYOS-Azure
Image SLES15-SP4-SAP-BYOS-EC2
Image SLES15-SP4-SAP-BYOS-GCE
Image SLES15-SP4-SAP-EC2
Image SLES15-SP4-SAP-GCE
Image SLES15-SP4-SAP-Hardened-BYOS
Image SLES15-SP4-SAP-Hardened-BYOS-Azure
Image SLES15-SP4-SAP-Hardened-BYOS-EC2
Image SLES15-SP4-SAP-Hardened-BYOS-GCE
Image SLES15-SP4-SAPCAL
Image SLES15-SP4-SAPCAL-Azure
Image SLES15-SP4-SAPCAL-EC2
Image SLES15-SP4-SAPCAL-GCE
Image SLES15-SP4-SUSE-Rancher-Setup-BYOS
Image SLES15-SP4-SUSE-Rancher-Setup-BYOS-EC2
  • libyajl2 >= 2.1.0-150000.4.3.1
SUSE Enterprise Storage 7.1
SUSE Linux Enterprise Desktop 15 SP3
SUSE Linux Enterprise High Performance Computing 15 SP3
SUSE Linux Enterprise Module for Basesystem 15 SP3
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server for SAP Applications 15 SP3
SUSE Manager Proxy 4.2
SUSE Manager Retail Branch Server 4.2
SUSE Manager Server 4.2
  • libyajl-devel >= 2.1.0-150000.4.3.1
  • libyajl2 >= 2.1.0-150000.4.3.1
Patchnames:
SUSE-SLE-Module-Basesystem-15-SP3-2022-3162
SUSE Linux Enterprise Desktop 15 SP4
SUSE Linux Enterprise High Performance Computing 15 SP4
SUSE Linux Enterprise Module for Basesystem 15 SP4
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15 SP4
SUSE Manager Proxy 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Manager Server 4.3
  • libyajl-devel >= 2.1.0-150000.4.3.1
  • libyajl2 >= 2.1.0-150000.4.3.1
Patchnames:
SUSE-SLE-Module-Basesystem-15-SP4-2022-3162
SUSE Linux Enterprise Micro 5.1
  • libyajl2 >= 2.1.0-150000.4.3.1
Patchnames:
SUSE-SUSE-MicroOS-5.1-2022-3162
SUSE Linux Enterprise Micro 5.2
  • libyajl2 >= 2.1.0-150000.4.3.1
Patchnames:
SUSE-SUSE-MicroOS-5.2-2022-3162
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server for SAP Applications 12 SP5
  • libyajl-devel >= 2.0.1-18.7.1
  • libyajl-devel-static >= 2.0.1-18.7.1
  • libyajl2 >= 2.0.1-18.7.1
  • libyajl2-32bit >= 2.0.1-18.7.1
Patchnames:
SUSE-SLE-SDK-12-SP5-2022-1746
SUSE-SLE-SERVER-12-SP5-2022-1746
SUSE Linux Enterprise Software Development Kit 12 SP5
  • libyajl-devel >= 2.0.1-18.7.1
  • libyajl-devel-static >= 2.0.1-18.7.1
Patchnames:
SUSE-SLE-SDK-12-SP5-2022-1746
SUSE OpenStack Cloud Crowbar 8
  • ruby2.1-rubygem-yajl-ruby >= 1.3.1-4.6.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-8-2022-1918
SUSE OpenStack Cloud Crowbar 9
  • ruby2.1-rubygem-yajl-ruby >= 1.3.1-4.6.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-9-2022-1918
openSUSE Leap 15.3
  • libyajl-devel >= 2.1.0-150000.4.3.1
  • libyajl-devel-32bit >= 2.1.0-150000.4.3.1
  • libyajl-devel-static >= 2.1.0-150000.4.3.1
  • libyajl2 >= 2.1.0-150000.4.3.1
  • libyajl2-32bit >= 2.1.0-150000.4.3.1
  • yajl >= 2.1.0-150000.4.3.1
Patchnames:
openSUSE-SLE-15.3-2022-3162
openSUSE Leap 15.4
  • libyajl-devel >= 2.1.0-150000.4.3.1
  • libyajl-devel-32bit >= 2.1.0-150000.4.3.1
  • libyajl-devel-static >= 2.1.0-150000.4.3.1
  • libyajl2 >= 2.1.0-150000.4.3.1
  • libyajl2-32bit >= 2.1.0-150000.4.3.1
  • yajl >= 2.1.0-150000.4.3.1
Patchnames:
openSUSE-SLE-15.4-2022-3162
openSUSE Leap Micro 5.2
  • libyajl2 >= 2.1.0-150000.4.3.1
Patchnames:
openSUSE-Leap-Micro-5.2-2022-3162
openSUSE Tumbleweed
  • libyajl-devel >= 2.1.0-6.1
  • libyajl-devel-32bit >= 2.1.0-6.1
  • libyajl-devel-static >= 2.1.0-6.1
  • libyajl2 >= 2.1.0-6.1
  • libyajl2-32bit >= 2.1.0-6.1
  • yajl >= 2.1.0-6.1
Patchnames:
openSUSE Tumbleweed GA libyajl-devel-2.1.0-6.1


First public cloud image revisions this CVE is fixed in:


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
HPE Helion OpenStack 8 libyajl Released
SUSE CaaS Platform 3.0 libyajl Affected
SUSE CaaS Platform 4.0 libyajl Affected
SUSE Cloud Compute Node for SUSE Linux Enterprise 12 5 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 1.0 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 2 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 2.1 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 3 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 4 rubygem-yajl-ruby Affected
SUSE Enterprise Storage 6 libyajl Affected
SUSE Enterprise Storage 7 libyajl Affected
SUSE Enterprise Storage 7.1 libyajl Released
SUSE Linux Enterprise Desktop 11 SP4 libyajl Affected
SUSE Linux Enterprise Desktop 12 libyajl Affected
SUSE Linux Enterprise Desktop 12 SP1 libyajl Affected
SUSE Linux Enterprise Desktop 12 SP2 libyajl Affected
SUSE Linux Enterprise Desktop 12 SP3 libyajl Affected
SUSE Linux Enterprise Desktop 12 SP4 libyajl Affected
SUSE Linux Enterprise Desktop 15 libyajl Affected
SUSE Linux Enterprise Desktop 15 SP1 libyajl Affected
SUSE Linux Enterprise Desktop 15 SP2 libyajl Affected
SUSE Linux Enterprise Desktop 15 SP3 libyajl Released
SUSE Linux Enterprise Desktop 15 SP4 libyajl Released
SUSE Linux Enterprise High Performance Computing 12 SP5 libyajl Released
SUSE Linux Enterprise High Performance Computing 15 libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP2 libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS libyajl Affected
SUSE Linux Enterprise High Performance Computing 15 SP3 libyajl Released
SUSE Linux Enterprise High Performance Computing 15 SP4 libyajl Released
SUSE Linux Enterprise High Performance Computing 15-ESPOS libyajl Affected
SUSE Linux Enterprise High Performance Computing 15-LTSS libyajl Affected
SUSE Linux Enterprise Micro 5.0 libyajl Affected
SUSE Linux Enterprise Micro 5.1 libyajl Released
SUSE Linux Enterprise Micro 5.2 libyajl Released
SUSE Linux Enterprise Micro 5.3 libyajl Affected
SUSE Linux Enterprise Micro for Rancher 5.2 libyajl Released
SUSE Linux Enterprise Module for Basesystem 15 libyajl Affected
SUSE Linux Enterprise Module for Basesystem 15 SP1 libyajl Affected
SUSE Linux Enterprise Module for Basesystem 15 SP2 libyajl Affected
SUSE Linux Enterprise Module for Basesystem 15 SP3 libyajl Released
SUSE Linux Enterprise Module for Basesystem 15 SP4 libyajl Released
SUSE Linux Enterprise Real Time 15 SP2 libyajl Affected
SUSE Linux Enterprise Real Time 15 SP3 libyajl Affected
SUSE Linux Enterprise Server 11 SP3 libyajl Affected
SUSE Linux Enterprise Server 11 SP3-LTSS libyajl Affected
SUSE Linux Enterprise Server 11 SP4 libyajl Affected
SUSE Linux Enterprise Server 11 SP4 LTSS libyajl Affected
SUSE Linux Enterprise Server 11 SP4-LTSS libyajl Affected
SUSE Linux Enterprise Server 12 libyajl Affected
SUSE Linux Enterprise Server 12 SP1 libyajl Affected
SUSE Linux Enterprise Server 12 SP1-LTSS libyajl Affected
SUSE Linux Enterprise Server 12 SP2 libyajl Affected
SUSE Linux Enterprise Server 12 SP2-BCL libyajl Released
SUSE Linux Enterprise Server 12 SP2-ESPOS libyajl Affected
SUSE Linux Enterprise Server 12 SP2-LTSS libyajl Affected
SUSE Linux Enterprise Server 12 SP3 libyajl Affected
SUSE Linux Enterprise Server 12 SP3-BCL libyajl Released
SUSE Linux Enterprise Server 12 SP3-ESPOS libyajl Released
SUSE Linux Enterprise Server 12 SP3-LTSS libyajl Released
SUSE Linux Enterprise Server 12 SP4 libyajl Affected
SUSE Linux Enterprise Server 12 SP4-ESPOS libyajl Released
SUSE Linux Enterprise Server 12 SP4-LTSS libyajl Released
SUSE Linux Enterprise Server 12 SP5 libyajl Released
SUSE Linux Enterprise Server 12-LTSS libyajl Affected
SUSE Linux Enterprise Server 15 libyajl Affected
SUSE Linux Enterprise Server 15 SP1 libyajl Affected
SUSE Linux Enterprise Server 15 SP1-BCL libyajl Affected
SUSE Linux Enterprise Server 15 SP1-LTSS libyajl Affected
SUSE Linux Enterprise Server 15 SP2 libyajl Affected
SUSE Linux Enterprise Server 15 SP2-BCL libyajl Affected
SUSE Linux Enterprise Server 15 SP2-LTSS libyajl Affected
SUSE Linux Enterprise Server 15 SP3 libyajl Released
SUSE Linux Enterprise Server 15 SP4 libyajl Released
SUSE Linux Enterprise Server 15-ESPOS libyajl Affected
SUSE Linux Enterprise Server 15-LTSS libyajl Affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 libyajl Affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 libyajl Affected
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 11 SP4 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 12 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP1 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP2 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 12 SP3 libyajl Released
SUSE Linux Enterprise Server for SAP Applications 12 SP4 libyajl Released
SUSE Linux Enterprise Server for SAP Applications 12 SP5 libyajl Released
SUSE Linux Enterprise Server for SAP Applications 15 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 libyajl Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 libyajl Released
SUSE Linux Enterprise Server for SAP Applications 15 SP4 libyajl Released
SUSE Linux Enterprise Software Development Kit 11 SP4 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 SP1 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 SP2 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 SP3 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 SP4 libyajl Affected
SUSE Linux Enterprise Software Development Kit 12 SP5 libyajl Released
SUSE Manager Proxy 4.0 libyajl Affected
SUSE Manager Proxy 4.1 libyajl Affected
SUSE Manager Proxy 4.2 libyajl Released
SUSE Manager Proxy 4.3 libyajl Released
SUSE Manager Retail Branch Server 4.0 libyajl Affected
SUSE Manager Retail Branch Server 4.1 libyajl Affected
SUSE Manager Retail Branch Server 4.2 libyajl Released
SUSE Manager Retail Branch Server 4.3 libyajl Released
SUSE Manager Server 4.0 libyajl Affected
SUSE Manager Server 4.1 libyajl Affected
SUSE Manager Server 4.2 libyajl Released
SUSE Manager Server 4.3 libyajl Released
SUSE OpenStack Cloud 6 rubygem-yajl-ruby Affected
SUSE OpenStack Cloud 6-LTSS rubygem-yajl-ruby Affected
SUSE OpenStack Cloud 7 libyajl Affected
SUSE OpenStack Cloud 7 rubygem-yajl-ruby Affected
SUSE OpenStack Cloud 8 libyajl Released
SUSE OpenStack Cloud 9 libyajl Released
SUSE OpenStack Cloud Crowbar 8 libyajl Released
SUSE OpenStack Cloud Crowbar 8 rubygem-yajl-ruby Released
SUSE OpenStack Cloud Crowbar 9 libyajl Released
SUSE OpenStack Cloud Crowbar 9 rubygem-yajl-ruby Released


SUSE Timeline for this CVE

CVE page created: Wed Apr 6 02:00:56 2022
CVE page last modified: Thu Dec 1 00:32:45 2022