The path “/tmp/sitemap.xml” is not writable

After upgrading Magento to 2.4.8-p1 and using PHP 8.3
sitemap is not generating and showing error as mentioned in subject.

I have chnage the permissions of /tmp folder to 777 but still same error is showing.