In the Linux kernel, the following vulnerability has been resolved:
media: vidtv: mux: Add check and kfree for kstrdup
Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.
Moreover, use kfree() in the later error handling in order to avoid
memory leak.
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/media/test-drivers/vidtv/vidtv_mux.c"
],
"versions": [
{
"version": "c2f78f0cb294",
"lessThan": "64863ba8e6b7",
"status": "affected",
"versionType": "git"
},
{
"version": "c2f78f0cb294",
"lessThan": "980be4c3b0d5",
"status": "affected",
"versionType": "git"
},
{
"version": "c2f78f0cb294",
"lessThan": "a254ee1ddc59",
"status": "affected",
"versionType": "git"
},
{
"version": "c2f78f0cb294",
"lessThan": "cb1300141199",
"status": "affected",
"versionType": "git"
},
{
"version": "c2f78f0cb294",
"lessThan": "aae7598aff29",
"status": "affected",
"versionType": "git"
},
{
"version": "c2f78f0cb294",
"lessThan": "1fd6eb12642e",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/media/test-drivers/vidtv/vidtv_mux.c"
],
"versions": [
{
"version": "5.10",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.10",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.10.201",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.139",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.1.63",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.5.12",
"lessThanOrEqual": "6.5.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.6.2",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.7",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]
git.kernel.org/stable/c/1fd6eb12642e0c32692924ff359c07de4b781d78
git.kernel.org/stable/c/64863ba8e6b7651d994c6e6d506cc8aa2ac45edb
git.kernel.org/stable/c/980be4c3b0d51c0f873fd750117774561c66cf68
git.kernel.org/stable/c/a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4
git.kernel.org/stable/c/aae7598aff291d4d140be1355aa20930af948785
git.kernel.org/stable/c/cb13001411999adb158b39e76d94705eb2da100d