Hello @arif liminto
On 3 December 2022, extended support for Microsoft .NET Core 3.1 will end. After that date, your applications that are hosted on Functions or WebApps will continue to run and your applications will not be impacted. However, Microsoft will no longer provide patches, or online technical assistance. or customer service for .NET Core 3.1.
You are right if there is a bug in .net 3.1 core, microsoft will not longer provide patches as use of out-of-support .NET versions may put your applications, application data, and computing environment at risk.
https://github.com/Azure/app-service-linux-docs/blob/master/Runtime_Support/dot_net_core.md
https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#servicing
If you think your question has been answered, click "Mark as Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.