CVE-2022-49664

Source
https://cve.org/CVERecord?id=CVE-2022-49664
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49664.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49664
Downstream
Published
2025-02-26T02:23:59.792Z
Modified
2026-03-20T12:24:43.222256Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
tipc: move bc link creation back to tipc_node_create
Details

In the Linux kernel, the following vulnerability has been resolved:

tipc: move bc link creation back to tipcnodecreate

Shuang Li reported a NULL pointer dereference crash:

[] BUG: kernel NULL pointer dereference, address: 0000000000000068 [] RIP: 0010:tipclinkisup+0x5/0x10 [tipc] [] Call Trace: [] <IRQ> [] tipcbcastrcv+0xa2/0x190 [tipc] [] tipcnodebcrcv+0x8b/0x200 [tipc] [] tipcrcv+0x3af/0x5b0 [tipc] [] tipcudp_recv+0xc7/0x1e0 [tipc]

It was caused by the 'l' passed into tipcbcastrcv() is NULL. When it creates a node in tipcnodecheckdest(), after inserting the new node into hashtable in tipcnode_create(), it creates the bc link. However, there is a gap between this insert and bc link creation, a bc packet may come in and get the node from the hashtable then try to dereference its bc link, which is NULL.

This patch is to fix it by moving the bc link creation before inserting into the hashtable.

Note that for a preliminary node becoming "real", the bc link creation should also be called before it's rehashed, as we don't create it for preliminary nodes.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49664.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4cbf8ac2fe5a0846508fe02b95a5de1a90fa73f4
Fixed
456bc338871c4a52117dd5ef29cce3745456d248
Fixed
35fcb2ba35b4d9b592b558c3bcc6e0d90e213588
Fixed
e52910e671f58c619e33dac476b11b35e2d3ab6f
Fixed
cb8092d70a6f5f01ec1490fce4d35efed3ed996c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
0b8f0026bbd4df1688e1726026476e60762daf2a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49664.json"