{
  "threat_severity" : "Low",
  "public_date" : "2024-04-17T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: Bluetooth: btrtl: fix out of bounds memory access",
    "id" : "2275670",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2275670"
  },
  "cvss3" : {
    "cvss3_base_score" : "4.4",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-125",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nBluetooth: btrtl: fix out of bounds memory access\nThe problem is detected by KASAN.\nbtrtl driver uses private hci data to store 'struct btrealtek_data'.\nIf btrtl driver is used with btusb, then memory for private hci data\nis allocated in btusb. But no private data is allocated after hci_dev,\nwhen btrtl is used with hci_h5.\nThis commit adds memory allocation for hci_h5 case.\n==================================================================\nBUG: KASAN: slab-out-of-bounds in btrtl_initialize+0x6cc/0x958 [btrtl]\nWrite of size 8 at addr ffff00000f5a5748 by task kworker/u9:0/76\nHardware name: Pine64 PinePhone (1.2) (DT)\nWorkqueue: hci0 hci_power_on [bluetooth]\nCall trace:\ndump_backtrace+0x9c/0x128\nshow_stack+0x20/0x38\ndump_stack_lvl+0x48/0x60\nprint_report+0xf8/0x5d8\nkasan_report+0x90/0xd0\n__asan_store8+0x9c/0xc0\n[btrtl]\nh5_btrtl_setup+0xd0/0x2f8 [hci_uart]\nh5_setup+0x50/0x80 [hci_uart]\nhci_uart_setup+0xd4/0x260 [hci_uart]\nhci_dev_open_sync+0x1cc/0xf68 [bluetooth]\nhci_dev_do_open+0x34/0x90 [bluetooth]\nhci_power_on+0xc4/0x3c8 [bluetooth]\nprocess_one_work+0x328/0x6f0\nworker_thread+0x410/0x778\nkthread+0x168/0x178\nret_from_fork+0x10/0x20\nAllocated by task 53:\nkasan_save_stack+0x3c/0x68\nkasan_save_track+0x20/0x40\nkasan_save_alloc_info+0x68/0x78\n__kasan_kmalloc+0xd4/0xd8\n__kmalloc+0x1b4/0x3b0\nhci_alloc_dev_priv+0x28/0xa58 [bluetooth]\nhci_uart_register_device+0x118/0x4f8 [hci_uart]\nh5_serdev_probe+0xf4/0x178 [hci_uart]\nserdev_drv_probe+0x54/0xa0\nreally_probe+0x254/0x588\n__driver_probe_device+0xc4/0x210\ndriver_probe_device+0x64/0x160\n__driver_attach_async_helper+0x88/0x158\nasync_run_entry_fn+0xd0/0x388\nprocess_one_work+0x328/0x6f0\nworker_thread+0x410/0x778\nkthread+0x168/0x178\nret_from_fork+0x10/0x20\nLast potentially related work creation:\nkasan_save_stack+0x3c/0x68\n__kasan_record_aux_stack+0xb0/0x150\nkasan_record_aux_stack_noalloc+0x14/0x20\n__queue_work+0x33c/0x960\nqueue_work_on+0x98/0xc0\nhci_recv_frame+0xc8/0x1e8 [bluetooth]\nh5_complete_rx_pkt+0x2c8/0x800 [hci_uart]\nh5_rx_payload+0x98/0xb8 [hci_uart]\nh5_recv+0x158/0x3d8 [hci_uart]\nhci_uart_receive_buf+0xa0/0xe8 [hci_uart]\nttyport_receive_buf+0xac/0x178\nflush_to_ldisc+0x130/0x2c8\nprocess_one_work+0x328/0x6f0\nworker_thread+0x410/0x778\nkthread+0x168/0x178\nret_from_fork+0x10/0x20\nSecond to last potentially related work creation:\nkasan_save_stack+0x3c/0x68\n__kasan_record_aux_stack+0xb0/0x150\nkasan_record_aux_stack_noalloc+0x14/0x20\n__queue_work+0x788/0x960\nqueue_work_on+0x98/0xc0\n__hci_cmd_sync_sk+0x23c/0x7a0 [bluetooth]\n__hci_cmd_sync+0x24/0x38 [bluetooth]\nbtrtl_initialize+0x760/0x958 [btrtl]\nh5_btrtl_setup+0xd0/0x2f8 [hci_uart]\nh5_setup+0x50/0x80 [hci_uart]\nhci_uart_setup+0xd4/0x260 [hci_uart]\nhci_dev_open_sync+0x1cc/0xf68 [bluetooth]\nhci_dev_do_open+0x34/0x90 [bluetooth]\nhci_power_on+0xc4/0x3c8 [bluetooth]\nprocess_one_work+0x328/0x6f0\nworker_thread+0x410/0x778\nkthread+0x168/0x178\nret_from_fork+0x10/0x20\n==================================================================" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2024-11-12T00:00:00Z",
    "advisory" : "RHSA-2024:9315",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-503.11.1.el9_5"
  } ],
  "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 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-26890\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-26890" ],
  "name" : "CVE-2024-26890",
  "csaw" : false
}