An issue was discovered in the Linux kernel before 4.20.15. The nfcllcpbuildtlv function in net/nfc/llcpcommands.c may return NULL. If the caller does not check for this, it will trigger a NULL pointer dereference. This will cause denial of service. This affects nfcllcpbuildgb in net/nfc/llcpcore.c.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12818.json"
[
{
"id": "CVE-2019-12818-2fc045dd",
"signature_type": "Function",
"digest": {
"function_hash": "90668014265989130378869090799877081905",
"length": 1107.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_build_gb",
"file": "net/nfc/llcp_core.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-38c862e1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"305610552310590469901354514438346841975",
"151587946857710861411421868975471277264",
"259235739434818783104333079676830360051",
"209223214877258595231450922244643445159",
"78331977208053746507562899981798722495",
"169745159333035080791419249960189074960",
"110706564775307290890547826893856504757",
"212167077856203057946423716384215392788",
"188183469407985000534328736632558248032",
"260574085755640710208861837418933442448",
"323442959827982561169345056077057258320",
"105117787567726948264942180692710373718",
"328388840419475339156773824261345194078",
"108276308305175511843803393205096396749",
"264911840257108750512335098885940652038",
"41454227639612665563704334915836922863",
"51743286180990368249195304750731088021",
"316534799325791938323266443846521552302",
"224653796017115558086609154842241556335"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"file": "net/nfc/llcp_core.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-5666c5d8",
"signature_type": "Function",
"digest": {
"function_hash": "172202668685366749629620402759963012079",
"length": 1175.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_send_connect",
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-b31a31ac",
"signature_type": "Function",
"digest": {
"function_hash": "139080244765380379512993142791205966605",
"length": 862.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_send_cc",
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-d3311ffe",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"41267420283086943580639277931878248812",
"288614278201078744842615015401938985266",
"251745224299092434975392045018278659094",
"56047918080107908508549567504846797200",
"141793053864965145278138034355138424217",
"45761341307388532136642852981251582644",
"200201616940627233113878314486236649895",
"61330430144144137630602838463168455449",
"185045610782288694551946635133235375065",
"113290206056732108417782224536656219030",
"141793053864965145278138034355138424217",
"45761341307388532136642852981251582644",
"200201616940627233113878314486236649895",
"61330430144144137630602838463168455449",
"146592344326959494665379858318128475730",
"119945111071536754239488407537144028123"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12818.json"
[
{
"id": "CVE-2019-12818-3f044ccb",
"signature_type": "Function",
"digest": {
"function_hash": "139080244765380379512993142791205966605",
"length": 862.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_send_cc",
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-555a4759",
"signature_type": "Function",
"digest": {
"function_hash": "90668014265989130378869090799877081905",
"length": 1107.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_build_gb",
"file": "net/nfc/llcp_core.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-99ca34a9",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"305610552310590469901354514438346841975",
"151587946857710861411421868975471277264",
"259235739434818783104333079676830360051",
"209223214877258595231450922244643445159",
"78331977208053746507562899981798722495",
"169745159333035080791419249960189074960",
"110706564775307290890547826893856504757",
"212167077856203057946423716384215392788",
"188183469407985000534328736632558248032",
"260574085755640710208861837418933442448",
"323442959827982561169345056077057258320",
"105117787567726948264942180692710373718",
"328388840419475339156773824261345194078",
"108276308305175511843803393205096396749",
"264911840257108750512335098885940652038",
"41454227639612665563704334915836922863",
"51743286180990368249195304750731088021",
"316534799325791938323266443846521552302",
"224653796017115558086609154842241556335"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"file": "net/nfc/llcp_core.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-9a34679e",
"signature_type": "Function",
"digest": {
"function_hash": "172202668685366749629620402759963012079",
"length": 1175.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"function": "nfc_llcp_send_connect",
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
},
{
"id": "CVE-2019-12818-ce1f5e17",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"41267420283086943580639277931878248812",
"288614278201078744842615015401938985266",
"251745224299092434975392045018278659094",
"56047918080107908508549567504846797200",
"141793053864965145278138034355138424217",
"45761341307388532136642852981251582644",
"200201616940627233113878314486236649895",
"61330430144144137630602838463168455449",
"185045610782288694551946635133235375065",
"113290206056732108417782224536656219030",
"141793053864965145278138034355138424217",
"45761341307388532136642852981251582644",
"200201616940627233113878314486236649895",
"61330430144144137630602838463168455449",
"146592344326959494665379858318128475730",
"119945111071536754239488407537144028123"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/58bdd544e2933a21a51eecf17c3f5f94038261b5",
"target": {
"file": "net/nfc/llcp_commands.c"
},
"deprecated": false
}
]