In the Linux kernel, the following vulnerability has been resolved:
smc: Use _skdstget() and dstdevrcu() in smcclcprfxmatch().
smcclcprfxmatch() is called from smclisten_work() and not under RCU nor RTNL.
Using skdstget(sk)->dev could trigger UAF.
Let's use _skdstget() and dstdev_rcu().
Note that the returned value of smcclcprfx_match() is not used in the caller.
[
{
"digest": {
"line_hashes": [
"20529958486069827244666995074716862596",
"22037870345281462792251866033984519391",
"25491150057054373122429699230046197128",
"249046460054768299249642562428509028328",
"251256825618898010022202355505149203194",
"150660361545542058592604594007026800571",
"136099513257788916192226928515794900362",
"190091729461162202634256826234690221980",
"234974647794219644646770174978301843474",
"58168686336704214197705892280086283134",
"210386850833433378831895571645722800564",
"205508534361399061079481970388185182960",
"196243194286216156188788129104925772508",
"225733875547862193748817070138639803002",
"59249084580876421181311408597803031870",
"121125579731771493211277175800510473484",
"179399755167049882043243704692467438881",
"275704427802249118714108256141250893969",
"227795599661406884970853350956842086714",
"105024108323874747069012587990270426715",
"163688394490104748860448347141710555874",
"243156613459498937797276998749127708578"
],
"threshold": 0.9
},
"target": {
"file": "net/smc/smc_clc.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@235f81045c008169cc4e1955b4a64e118eebe61b",
"id": "CVE-2025-40168-78c16ab8",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"digest": {
"length": 407.0,
"function_hash": "123396197099692183603507770301872406640"
},
"target": {
"file": "net/smc/smc_clc.c",
"function": "smc_clc_prfx_match"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d26e80f7fb62d77757b67a1b94e4ac756bc9c658",
"id": "CVE-2025-40168-7fedbd92",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"digest": {
"line_hashes": [
"20529958486069827244666995074716862596",
"22037870345281462792251866033984519391",
"25491150057054373122429699230046197128",
"249046460054768299249642562428509028328",
"251256825618898010022202355505149203194",
"150660361545542058592604594007026800571",
"136099513257788916192226928515794900362",
"190091729461162202634256826234690221980",
"234974647794219644646770174978301843474",
"58168686336704214197705892280086283134",
"210386850833433378831895571645722800564",
"205508534361399061079481970388185182960",
"196243194286216156188788129104925772508",
"225733875547862193748817070138639803002",
"59249084580876421181311408597803031870",
"121125579731771493211277175800510473484",
"179399755167049882043243704692467438881",
"275704427802249118714108256141250893969",
"227795599661406884970853350956842086714",
"105024108323874747069012587990270426715",
"163688394490104748860448347141710555874",
"243156613459498937797276998749127708578"
],
"threshold": 0.9
},
"target": {
"file": "net/smc/smc_clc.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d26e80f7fb62d77757b67a1b94e4ac756bc9c658",
"id": "CVE-2025-40168-83434745",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"digest": {
"length": 407.0,
"function_hash": "123396197099692183603507770301872406640"
},
"target": {
"file": "net/smc/smc_clc.c",
"function": "smc_clc_prfx_match"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@235f81045c008169cc4e1955b4a64e118eebe61b",
"id": "CVE-2025-40168-94e344b5",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
}
]