title: media: pvrusb2: fix use after free on context disconnection
description: In the Linux kernel, the following vulnerability has been resolved:
media: pvrusb2: fix use after free on context disconnection
Upon module load, a kthread is created targeting the
pvr2_context_thread_func function, which may call pvr2_context_destroy
and thus call kfree() on the context object. However, that might happen
before the usb hub_event handler is able to notify the driver. This
patch adds a sanity check before the invalid read reported by syzbot,
within the context disconnection call stack.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: e5be15c63804, lessThan: ec36c134dd02, status: affected, versionType: git
version: e5be15c63804, lessThan: 47aa8fcd5e8b, status: affected, versionType: git
version: e5be15c63804, lessThan: 3233d8bf7893, status: affected, versionType: git
version: e5be15c63804, lessThan: ec3634ebe23f, status: affected, versionType: git
version: e5be15c63804, lessThan: 30773ea47d41, status: affected, versionType: git
version: e5be15c63804, lessThan: 2cf0005d3155, status: affected, versionType: git
version: e5be15c63804, lessThan: 437b5f57732b, status: affected, versionType: git
version: e5be15c63804, lessThan: ded85b0c0edd, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 2.6.26, status: affected
version: 0, lessThan: 2.6.26, status: unaffected, versionType: custom
version: 4.19.306, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.268, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.209, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.148, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.75, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.14, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.2, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
