In the Linux kernel, the following vulnerability has been resolved:
phylib: fix potential use-after-free
Commit bafbdd527d56 ("phylib: Add device reset GPIO support") added call to phydevicereset(phydev) after the putdevice() call in phydetach().
The comment before the putdevice() call says that the phydev might go away with putdevice().
Fix potential use-after-free by calling phydevicereset() before put_device().
[
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-0a06cb2d",
"signature_version": "v1",
"digest": {
"length": 900.0,
"function_hash": "162059931033101305783001839830139203668"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aefaccd19379d6c4620269a162bfb88ff687f289",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
},
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-2591f599",
"signature_version": "v1",
"digest": {
"length": 840.0,
"function_hash": "48615426239297653924643434733869512362"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67d271760b037ce0806d687ee6057edc8afd4205",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-2eae4781",
"signature_version": "v1",
"digest": {
"line_hashes": [
"90915783529773538108610700710822439423",
"87451850917675807386133765852195850978",
"298902366469516012427129441143990307827",
"200729956667716031451338626590228450717",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f39027cbada43b33566c312e6be3db654ca3ad17",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-2f416350",
"signature_version": "v1",
"digest": {
"line_hashes": [
"90915783529773538108610700710822439423",
"87451850917675807386133765852195850978",
"298902366469516012427129441143990307827",
"200729956667716031451338626590228450717",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd024e36f68174b1793906c39ca16cee0c9295c2",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-5c6e4115",
"signature_version": "v1",
"digest": {
"length": 900.0,
"function_hash": "162059931033101305783001839830139203668"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f39027cbada43b33566c312e6be3db654ca3ad17",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-8d47ae43",
"signature_version": "v1",
"digest": {
"line_hashes": [
"90915783529773538108610700710822439423",
"87451850917675807386133765852195850978",
"298902366469516012427129441143990307827",
"200729956667716031451338626590228450717",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb2fab10fc5e7a3aa1bb0a68a3abdcf3e37852af",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-a3c1612e",
"signature_version": "v1",
"digest": {
"line_hashes": [
"289397626910493559058130458777430805809",
"66080717220628163652555329008210561212",
"19417713175999887411691875478888660072",
"9372487724820275113788833293026232201",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67d271760b037ce0806d687ee6057edc8afd4205",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-ae12cd07",
"signature_version": "v1",
"digest": {
"length": 900.0,
"function_hash": "162059931033101305783001839830139203668"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb2fab10fc5e7a3aa1bb0a68a3abdcf3e37852af",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-ae940951",
"signature_version": "v1",
"digest": {
"line_hashes": [
"90915783529773538108610700710822439423",
"87451850917675807386133765852195850978",
"298902366469516012427129441143990307827",
"200729956667716031451338626590228450717",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aefaccd19379d6c4620269a162bfb88ff687f289",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-48754-f9010dee",
"signature_version": "v1",
"digest": {
"line_hashes": [
"90915783529773538108610700710822439423",
"87451850917675807386133765852195850978",
"298902366469516012427129441143990307827",
"200729956667716031451338626590228450717",
"207982884120900548217433063359337634087",
"272691556775519067480120547425081785336",
"65698858808709011887814738741006027089"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cbda1b16687580d5beee38273f6241ae3725960c",
"target": {
"file": "drivers/net/phy/phy_device.c"
}
},
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-fae34c29",
"signature_version": "v1",
"digest": {
"length": 900.0,
"function_hash": "162059931033101305783001839830139203668"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cbda1b16687580d5beee38273f6241ae3725960c",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
},
{
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-48754-fd019a83",
"signature_version": "v1",
"digest": {
"length": 900.0,
"function_hash": "162059931033101305783001839830139203668"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd024e36f68174b1793906c39ca16cee0c9295c2",
"target": {
"file": "drivers/net/phy/phy_device.c",
"function": "phy_detach"
}
}
]