{
  "threat_severity" : "Moderate",
  "public_date" : "2024-10-21T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: HID: core: fix shift-out-of-bounds in hid_report_raw_event",
    "id" : "2320665",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2320665"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.1",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-125",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nHID: core: fix shift-out-of-bounds in hid_report_raw_event\nSyzbot reported shift-out-of-bounds in hid_report_raw_event.\nmicrosoft 0003:045E:07DA.0001: hid_field_extract() called with n (128) >\n32! (swapper/0)\n======================================================================\nUBSAN: shift-out-of-bounds in drivers/hid/hid-core.c:1323:20\nshift exponent 127 is too large for 32-bit type 'int'\nCPU: 0 PID: 0 Comm: swapper/0 Not tainted\n6.1.0-rc4-syzkaller-00159-g4bbf3422df78 #0\nHardware name: Google Compute Engine/Google Compute Engine, BIOS\nGoogle 10/26/2022\nCall Trace:\n<IRQ>\n__dump_stack lib/dump_stack.c:88 [inline]\ndump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106\nubsan_epilogue lib/ubsan.c:151 [inline]\n__ubsan_handle_shift_out_of_bounds+0x3a6/0x420 lib/ubsan.c:322\nsnto32 drivers/hid/hid-core.c:1323 [inline]\nhid_input_fetch_field drivers/hid/hid-core.c:1572 [inline]\nhid_process_report drivers/hid/hid-core.c:1665 [inline]\nhid_report_raw_event+0xd56/0x18b0 drivers/hid/hid-core.c:1998\nhid_input_report+0x408/0x4f0 drivers/hid/hid-core.c:2066\nhid_irq_in+0x459/0x690 drivers/hid/usbhid/hid-core.c:284\n__usb_hcd_giveback_urb+0x369/0x530 drivers/usb/core/hcd.c:1671\ndummy_timer+0x86b/0x3110 drivers/usb/gadget/udc/dummy_hcd.c:1988\ncall_timer_fn+0xf5/0x210 kernel/time/timer.c:1474\nexpire_timers kernel/time/timer.c:1519 [inline]\n__run_timers+0x76a/0x980 kernel/time/timer.c:1790\nrun_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803\n__do_softirq+0x277/0x75b kernel/softirq.c:571\n__irq_exit_rcu+0xec/0x170 kernel/softirq.c:650\nirq_exit_rcu+0x5/0x20 kernel/softirq.c:662\nsysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107\n======================================================================\nIf the size of the integer (unsigned n) is bigger than 32 in snto32(),\nshift exponent will be too large for 32-bit type 'int', resulting in a\nshift-out-of-bounds bug.\nFix this by adding a check on the size of the integer (unsigned n) in\nsnto32(). To add support for n greater than 32 bits, set n to 32, if n\nis greater than 32." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7 Extended Lifecycle Support",
    "release_date" : "2025-11-12T00:00:00Z",
    "advisory" : "RHSA-2025:21082",
    "cpe" : "cpe:/a:redhat:rhel_extras_rt_els:7",
    "package" : "kernel-rt-0:3.10.0-1160.142.1.rt56.1294.el7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7 Extended Lifecycle Support",
    "release_date" : "2025-11-12T00:00:00Z",
    "advisory" : "RHSA-2025:21063",
    "cpe" : "cpe:/o:redhat:rhel_els:7",
    "package" : "kernel-0:3.10.0-1160.142.1.el7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-05-09T00:00:00Z",
    "advisory" : "RHSA-2023:2458",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-284.11.1.el9_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-05-09T00:00:00Z",
    "advisory" : "RHSA-2023:2458",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-284.11.1.el9_2"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "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-2022-48978\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-48978\nhttps://lore.kernel.org/linux-cve-announce/2024102146-CVE-2022-48978-8a19@gregkh/T" ],
  "name" : "CVE-2022-48978",
  "csaw" : false
}