{
  "threat_severity" : "Moderate",
  "public_date" : "2022-02-14T11:00:00Z",
  "bugzilla" : {
    "description" : "util-linux: partial disclosure of arbitrary files in chfn and chsh when compiled with libreadline",
    "id" : "2053151",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2053151"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
    "status" : "draft"
  },
  "cwe" : "CWE-209",
  "details" : [ "A flaw was found in the util-linux chfn and chsh utilities when compiled with Readline support. The Readline library uses an \"INPUTRC\" environment variable to get a path to the library config file. When the library cannot parse the specified file, it prints an error message containing data from the file. This flaw allows an unprivileged user to read root-owned files, potentially leading to privilege escalation. This flaw affects util-linux versions prior to 2.37.4.", "A flaw was found in the Linux kernel’s util-linux chfn and chsh utilities when compiled with Readline support. The Readline library uses an \"INPUTRC\" environment variable to get a path to the library config file. When the library cannot parse the specified file, it prints an error message containing data from the file. This flaw allows an unprivileged user to read root-owned files, potentially leading to privilege escalation." ],
  "statement" : "Red Hat Enterprise Linux 8 is not affected by this flaw as chfn and chsh are not compiled with readline support (libreadline is not linked).",
  "acknowledgement" : "Upstream acknowledges Rory Mackie (Trail of Bits) as the original reporter.",
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "util-linux-ng",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "util-linux",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "util-linux",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "util-linux",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-0563\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-0563\nhttps://blog.trailofbits.com/2023/02/16/suid-logic-bug-linux-readline/\nhttps://lore.kernel.org/util-linux/20220214110609.msiwlm457ngoic6w@ws.net.home/T/#u" ],
  "name" : "CVE-2022-0563",
  "csaw" : false
}