{
  "threat_severity" : "Low",
  "public_date" : "2024-06-19T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: USB: core: Make do_proc_control() and do_proc_bulk() killable",
    "id" : "2293247",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2293247"
  },
  "cvss3" : {
    "cvss3_base_score" : "3.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-667",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nUSB: core: Make do_proc_control() and do_proc_bulk() killable\nThe USBDEVFS_CONTROL and USBDEVFS_BULK ioctls invoke\nusb_start_wait_urb(), which contains an uninterruptible wait with a\nuser-specified timeout value.  If timeout value is very large and the\ndevice being accessed does not respond in a reasonable amount of time,\nthe kernel will complain about \"Task X blocked for more than N\nseconds\", as found in testing by syzbot:\nINFO: task syz-executor.0:8700 blocked for more than 143 seconds.\nNot tainted 5.14.0-rc7-syzkaller #0\n\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\" disables this message.\ntask:syz-executor.0  state:D stack:23192 pid: 8700 ppid:  8455 flags:0x00004004\nCall Trace:\ncontext_switch kernel/sched/core.c:4681 [inline]\n__schedule+0xc07/0x11f0 kernel/sched/core.c:5938\nschedule+0x14b/0x210 kernel/sched/core.c:6017\nschedule_timeout+0x98/0x2f0 kernel/time/timer.c:1857\ndo_wait_for_common+0x2da/0x480 kernel/sched/completion.c:85\n__wait_for_common kernel/sched/completion.c:106 [inline]\nwait_for_common kernel/sched/completion.c:117 [inline]\nwait_for_completion_timeout+0x46/0x60 kernel/sched/completion.c:157\nusb_start_wait_urb+0x167/0x550 drivers/usb/core/message.c:63\ndo_proc_bulk+0x978/0x1080 drivers/usb/core/devio.c:1236\nproc_bulk drivers/usb/core/devio.c:1273 [inline]\nusbdev_do_ioctl drivers/usb/core/devio.c:2547 [inline]\nusbdev_ioctl+0x3441/0x6b10 drivers/usb/core/devio.c:2713\n...\nTo fix this problem, this patch replaces usbfs's calls to\nusb_control_msg() and usb_bulk_msg() with special-purpose code that\ndoes essentially the same thing (as recommended in the comment for\nusb_start_wait_urb()), except that it always uses a killable wait and\nit uses GFP_KERNEL rather than GFP_NOIO." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2024-09-24T00:00:00Z",
    "advisory" : "RHSA-2024:7001",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8::nfv",
    "package" : "kernel-rt-0:4.18.0-553.22.1.rt7.363.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2024-09-24T00:00:00Z",
    "advisory" : "RHSA-2024:7000",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-553.22.1.el8_10"
  } ],
  "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 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-47582\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-47582\nhttps://lore.kernel.org/linux-cve-announce/2024061916-CVE-2021-47582-69aa@gregkh/T" ],
  "name" : "CVE-2021-47582",
  "csaw" : false
}