Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2022-50022

drivers:md:fix a potential use-after-free bug

Description

In the Linux kernel, the following vulnerability has been resolved: drivers:md:fix a potential use-after-free bug In line 2884, "raid5_release_stripe(sh);" drops the reference to sh and may cause sh to be released. However, sh is subsequently used in lines 2886 "if (sh->batch_head && sh != sh->batch_head)". This may result in an use-after-free bug. It can be fixed by moving "raid5_release_stripe(sh);" to the bottom of the function.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < 7470a4314b239e9a9580f248fdf4c9a92805490eaffected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < 09cf99bace7789d91caa8d10fbcfc8b2fb35857faffected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < e5b3dd2d92c4511e81f6e4ec9c5bb7ad25e03d13affected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < f5d46f1b47f65da1faf468277b261eb78c8e25b5affected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < 5d8325fd15892c8ab1146edc1d7ed8463de39636affected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < d9b94c3ace549433de8a93eeb27b0391fc8ac406affected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < eb3a4f73f43f839df981dda5859e8e075067a360affected
  • 59fc630b8b5f9f21c8ce3ba153341c107dce1b0c to < 104212471b1c1817b311771d817fb692af983173affected

Linux Linux

Default version status: affected

  • 4.1affected
  • 0 to < 4.1unaffected
  • 4.9.326 to ≤ 4.9.*unaffected
  • 4.14.291 to ≤ 4.14.*unaffected
  • 4.19.256 to ≤ 4.19.*unaffected
  • 5.4.211 to ≤ 5.4.*unaffected
  • 5.10.138 to ≤ 5.10.*unaffected
  • 5.15.63 to ≤ 5.15.*unaffected
  • 5.19.4 to ≤ 5.19.*unaffected
  • 6.0 to ≤ *unaffected

References