{
  "threat_severity" : "Low",
  "public_date" : "2024-12-27T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: net/smc: initialize close_work early to avoid warning",
    "id" : "2334558",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2334558"
  },
  "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" : "draft"
  },
  "cwe" : "CWE-665",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nnet/smc: initialize close_work early to avoid warning\nWe encountered a warning that close_work was canceled before\ninitialization.\nWARNING: CPU: 7 PID: 111103 at kernel/workqueue.c:3047 __flush_work+0x19e/0x1b0\nWorkqueue: events smc_lgr_terminate_work [smc]\nRIP: 0010:__flush_work+0x19e/0x1b0\nCall Trace:\n? __wake_up_common+0x7a/0x190\n? work_busy+0x80/0x80\n__cancel_work_timer+0xe3/0x160\nsmc_close_cancel_work+0x1a/0x70 [smc]\nsmc_close_active_abort+0x207/0x360 [smc]\n__smc_lgr_terminate.part.38+0xc8/0x180 [smc]\nprocess_one_work+0x19e/0x340\nworker_thread+0x30/0x370\n? process_one_work+0x340/0x340\nkthread+0x117/0x130\n? __kthread_cancel_work+0x50/0x50\nret_from_fork+0x22/0x30\nThis is because when smc_close_cancel_work is triggered, e.g. the RDMA\ndriver is rmmod and the LGR is terminated, the conn->close_work is\nflushed before initialization, resulting in WARN_ON(!work->func).\n__smc_lgr_terminate             | smc_connect_{rdma|ism}\n-------------------------------------------------------------\n| smc_conn_create\n| \\- smc_lgr_register_conn\nfor conn in lgr->conns_all      |\n\\- smc_conn_kill                |\n\\- smc_close_active_abort    |\n\\- smc_close_cancel_work  |\n\\- cancel_work_sync    |\n\\- __flush_work     |\n(close_work)   |\n| smc_close_init\n| \\- INIT_WORK(&close_work)\nSo fix this by initializing close_work before establishing the\nconnection." ],
  "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" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "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-2024-56641\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-56641\nhttps://lore.kernel.org/linux-cve-announce/2024122736-CVE-2024-56641-5492@gregkh/T" ],
  "name" : "CVE-2024-56641",
  "csaw" : false
}