{
  "threat_severity" : "Moderate",
  "public_date" : "2024-12-27T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: zram: fix NULL pointer in comp_algorithm_show()",
    "id" : "2334373",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2334373"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-476",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nzram: fix NULL pointer in comp_algorithm_show()\nLTP reported a NULL pointer dereference as followed:\nCPU: 7 UID: 0 PID: 5995 Comm: cat Kdump: loaded Not tainted 6.12.0-rc6+ #3\nHardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015\npstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)\npc : __pi_strcmp+0x24/0x140\nlr : zcomp_available_show+0x60/0x100 [zram]\nsp : ffff800088b93b90\nx29: ffff800088b93b90 x28: 0000000000000001 x27: 0000000000400cc0\nx26: 0000000000000ffe x25: ffff80007b3e2388 x24: 0000000000000000\nx23: ffff80007b3e2390 x22: ffff0004041a9000 x21: ffff80007b3e2900\nx20: 0000000000000000 x19: 0000000000000000 x18: 0000000000000000\nx17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000\nx14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000\nx11: 0000000000000000 x10: ffff80007b3e2900 x9 : ffff80007b3cb280\nx8 : 0101010101010101 x7 : 0000000000000000 x6 : 0000000000000000\nx5 : 0000000000000040 x4 : 0000000000000000 x3 : 00656c722d6f7a6c\nx2 : 0000000000000000 x1 : ffff80007b3e2900 x0 : 0000000000000000\nCall trace:\n__pi_strcmp+0x24/0x140\ncomp_algorithm_show+0x40/0x70 [zram]\ndev_attr_show+0x28/0x80\nsysfs_kf_seq_show+0x90/0x140\nkernfs_seq_show+0x34/0x48\nseq_read_iter+0x1d4/0x4e8\nkernfs_fop_read_iter+0x40/0x58\nnew_sync_read+0x9c/0x168\nvfs_read+0x1a8/0x1f8\nksys_read+0x74/0x108\n__arm64_sys_read+0x24/0x38\ninvoke_syscall+0x50/0x120\nel0_svc_common.constprop.0+0xc8/0xf0\ndo_el0_svc+0x24/0x38\nel0_svc+0x38/0x138\nel0t_64_sync_handler+0xc0/0xc8\nel0t_64_sync+0x188/0x190\nThe zram->comp_algs[ZRAM_PRIMARY_COMP] can be NULL in zram_add() if\ncomp_algorithm_set() has not been called.  User can access the zram device\nby sysfs after device_add_disk(), so there is a time window to trigger the\nNULL pointer dereference.  Move it ahead device_add_disk() to make sure\nwhen user can access the zram device, it is ready.  comp_algorithm_set()\nis protected by zram->init_lock in other places and no such problem." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2025-11-11T00:00:00Z",
    "advisory" : "RHSA-2025:20095",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.1",
    "package" : "kernel-0:6.12.0-124.8.1.el10_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-05-13T00:00:00Z",
    "advisory" : "RHSA-2025:6966",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-570.12.1.el9_6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-05-13T00:00:00Z",
    "advisory" : "RHSA-2025:6966",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-570.12.1.el9_6"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-53222\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-53222\nhttps://lore.kernel.org/linux-cve-announce/2024122734-CVE-2024-53222-6c79@gregkh/T" ],
  "name" : "CVE-2024-53222",
  "csaw" : false
}