{
  "threat_severity" : "Low",
  "public_date" : "2024-05-22T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: regmap: Fix possible double-free in regcache_rbtree_exit()",
    "id" : "2282939",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2282939"
  },
  "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-415",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nregmap: Fix possible double-free in regcache_rbtree_exit()\nIn regcache_rbtree_insert_to_block(), when 'present' realloc failed,\nthe 'blk' which is supposed to assign to 'rbnode->block' will be freed,\nso 'rbnode->block' points a freed memory, in the error handling path of\nregcache_rbtree_init(), 'rbnode->block' will be freed again in\nregcache_rbtree_exit(), KASAN will report double-free as follows:\nBUG: KASAN: double-free or invalid-free in kfree+0xce/0x390\nCall Trace:\nslab_free_freelist_hook+0x10d/0x240\nkfree+0xce/0x390\nregcache_rbtree_exit+0x15d/0x1a0\nregcache_rbtree_init+0x224/0x2c0\nregcache_init+0x88d/0x1310\n__regmap_init+0x3151/0x4a80\n__devm_regmap_init+0x7d/0x100\nmadera_spi_probe+0x10f/0x333 [madera_spi]\nspi_probe+0x183/0x210\nreally_probe+0x285/0xc30\nTo fix this, moving up the assignment of rbnode->block to immediately after\nthe reallocation has succeeded so that the data structure stays valid even\nif the second reallocation fails." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-11-08T00:00:00Z",
    "advisory" : "RHSA-2022:7683",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-425.3.1.el8"
  } ],
  "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" : "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" : "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",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "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-2021-47483\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-47483\nhttps://lore.kernel.org/linux-cve-announce/2024052238-CVE-2021-47483-8306@gregkh/T" ],
  "name" : "CVE-2021-47483",
  "csaw" : false
}