{"id":"CVE-2022-39063","state":"PUBLISHED","title":"When Open5GS UPF receives a PFCP Session Establishment Request, it stores related values for building the PFCP Session Establishment Response. Once UPF receives a request, it gets ","description":"When Open5GS UPF receives a PFCP Session Establishment Request, it stores related values for building the PFCP Session Establishment Response. Once UPF receives a request, it gets the f_teid_len from incoming message, and then uses it to copy data from incoming message to struct f_teid without checking the maximum length. If the pdi.local_f_teid.len exceeds the maximum length of the struct of f_teid, the memcpy() overwrites the fields (e.g., f_teid_len) after f_teid in the pdr struct. After parsing the request, the UPF starts to build a response. The f_teid_len with its overwritten value is used as a length for memcpy(). A segmentation fault occurs, as a result of a memcpy(), if this overwritten value is large enough.","publishedAt":"2022-09-16T18:02:12.000Z","updatedAt":"2024-08-03T11:10:32.459Z","severity":null,"assigner":"SNPS","products":["Open5GS Open5GS"],"affected":[{"vendor":"Open5GS","product":"Open5GS","versions":[{"version":"<2.4.9","status":"affected"}]}],"references":["https://www.synopsys.com/blogs/software-security/cyrc-advisory-open5gs/"],"weaknesses":["CWE-676"],"ingestedAt":"2026-10-29T19:50:29.496Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/39xxx/CVE-2022-39063.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-39063","state":"PUBLISHED","datePublished":"2022-09-16T18:02:12.000Z","dateUpdated":"2024-08-03T11:10:32.459Z","assignerShortName":"SNPS","assignerOrgId":"8cad7728-009c-4a3d-a95e-ca62e6ff8a0b","dateReserved":"2022-08-31T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"When Open5GS UPF receives a PFCP Session Establishment Request, it stores related values for building the PFCP Session Establishment Response. Once UPF receives a request, it gets the f_teid_len from incoming message, and then uses it to copy data from incoming message to struct f_teid without checking the maximum length. If the pdi.local_f_teid.len exceeds the maximum length of the struct of f_teid, the memcpy() overwrites the fields (e.g., f_teid_len) after f_teid in the pdr struct. After parsing the request, the UPF starts to build a response. The f_teid_len with its overwritten value is used as a length for memcpy(). A segmentation fault occurs, as a result of a memcpy(), if this overwritten value is large enough."}],"affected":[{"vendor":"Open5GS","product":"Open5GS","versions":[{"version":"<2.4.9","status":"affected"}]}],"references":[{"url":"https://www.synopsys.com/blogs/software-security/cyrc-advisory-open5gs/","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-676","description":"CWE-676: Use of Potentially Dangerous Function","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"SNPS","dateUpdated":"2022-09-16T18:02:12.000Z","orgId":"8cad7728-009c-4a3d-a95e-ca62e6ff8a0b"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"disclosure@synopsys.com","ID":"CVE-2022-39063","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Open5GS","version":{"version_data":[{"version_value":"<2.4.9"}]}}]},"vendor_name":"Open5GS"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"When Open5GS UPF receives a PFCP Session Establishment Request, it stores related values for building the PFCP Session Establishment Response. Once UPF receives a request, it gets the f_teid_len from incoming message, and then uses it to copy data from incoming message to struct f_teid without checking the maximum length. If the pdi.local_f_teid.len exceeds the maximum length of the struct of f_teid, the memcpy() overwrites the fields (e.g., f_teid_len) after f_teid in the pdr struct. After parsing the request, the UPF starts to build a response. The f_teid_len with its overwritten value is used as a length for memcpy(). A segmentation fault occurs, as a result of a memcpy(), if this overwritten value is large enough."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-676: Use of Potentially Dangerous Function"}]}]},"references":{"reference_data":[{"name":"https://www.synopsys.com/blogs/software-security/cyrc-advisory-open5gs/","refsource":"MISC","url":"https://www.synopsys.com/blogs/software-security/cyrc-advisory-open5gs/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.synopsys.com/blogs/software-security/cyrc-advisory-open5gs/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T11:10:32.459Z"}}]}}}