In the Linux kernel, the following vulnerability has been resolved:
RDMA: hfi1: fix possible divide-by-zero in findhwthread_mask()
The function divides number of online CPUs by numcoresiblings, and later checks the divider by zero. This implies a possibility to get and divide-by-zero runtime error. Fix it by moving the check prior to division. This also helps to save one indentation level.
[
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac53f377393cc85156afdc90b636e84e544a6f96",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-22e349b7",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a7cf828ed861de5be1aff99e10f114b363c19d3",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-4959a841",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31d0599a23efdbfe579bfbd1eb8f8c942f13744d",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-4e1f611f",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1a7cf828ed861de5be1aff99e10f114b363c19d3",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-698d89ed",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-73552b2b",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bba1a9994c523b44db64f63b564b4719ea2b7ef",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-7627de09",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b05e91afe948ed819bf87d7ba0fccf451ed79a6",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-916f1fd8",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b4317b0d758ff92ba96f4e448a8992a6fe607bf",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-929dd4c5",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac53f377393cc85156afdc90b636e84e544a6f96",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-a411b1b8",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-d71f5507",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b4317b0d758ff92ba96f4e448a8992a6fe607bf",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-dc1df734",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31d0599a23efdbfe579bfbd1eb8f8c942f13744d",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-e42cdb07",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "function": "find_hw_thread_mask",
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b05e91afe948ed819bf87d7ba0fccf451ed79a6",
        "digest": {
            "function_hash": "122778290170929537841392409321709716650",
            "length": 623.0
        },
        "id": "CVE-2025-39742-e88bd184",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/infiniband/hw/hfi1/affinity.c"
        },
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bba1a9994c523b44db64f63b564b4719ea2b7ef",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "323854432714317745579043180318317761919",
                "63376579016670353501306939309785721097",
                "103071374517183281106854226674069620443",
                "213558033602720954826299519774998544477",
                "278279157865649837317023587140651736867",
                "210244066595668650030152497523116558611",
                "28222845686441945518125506133565979645",
                "184990014412722921967270325048415039623",
                "335488804159366150304955278093831069153",
                "116130574113374950605164747777547806706",
                "2337183553703158356091926657977410412",
                "219743115309861324059757926342152970761",
                "56178308829032469980954309283446336684",
                "39081735759749199966510625767005428515",
                "144699501253874446216975460931365147245",
                "268783715278734469625554509513782384859",
                "296528370672278854952904814099509017703",
                "220557017964733970705130476685353964791",
                "95341165191069430678488076779176421915",
                "102769914407628384600027550608662575537",
                "269692316392269009961129724117519565127",
                "77731537595695469505516936552896491422",
                "200737963627791250691471367829067410933"
            ]
        },
        "id": "CVE-2025-39742-f737fe86",
        "signature_type": "Line"
    }
]