The two countries last fought a border conflict in February, but they pulled back from the brink after Pakistan returned a downed pilot to India.

The year is 2025 and militants have attacked India's parliament, killing most of its leaders. New Delhi retaliates by sending tanks into the part of Kashmir controlled by Pakistan.

Fearing it will be overrun, Islamabad hits the invading forces with its battlefield nuclear weapons, triggering an escalating exchange that becomes the deadliest conflict in history and sends millions of tons of thick, black smoke into the upper atmosphere.

This scenario was modeled by researchers in a new paper published on Wednesday, which envisaged more than 100 million immediate deaths followed by global mass starvation as the planet enters a new period of cooling, with temperatures not seen since the last Ice Age.

It comes at a time of renewed tensions between the two South Asian rivals, which have fought several wars over the Muslim-majority territory of Kashmir and are rapidly building up their atomic arsenals.

They currently each have about 150 nuclear warheads at their disposal, with the number expected to climb to more than 200 by 2025.

"Unfortunately it's timely because India and Pakistan remain in conflict over Kashmir, and every month or so you can read about people dying along the border," Alan Robock, a professor in environmental sciences at Rutgers University who co-authored the paper in Science Advances told AFP.

India's Prime Minister Narendra Modi scrapped the autonomy of the part of Kashmir controlled by New Delhi in August, with his Pakistani counterpart Imran Khan warning last week that the dispute could escalate into nuclear war.

The two countries last fought a border conflict in February, but they pulled back from the brink after Pakistan returned a downed pilot to India.

- Catastrophic cooling -

Based on their current populations and the urban centers that would be likely targeted, the researchers estimated up to 125 million could be killed if 100 kiloton weapons were used -- that is more than six times as powerful as the bombs dropped on Hiroshima.

For reference, some 75-80 million people were killed in World War II.

But that would only be the beginning.

The research found that mass firestorms ignited by the exploding nuclear weapons could release 16 million to 36 million tons of soot (black carbon) into the upper atmosphere, spreading around the world within weeks.

The soot in turn would absorb solar radiation, heating the air up and boosting the smoke's rise. Sunlight reaching the Earth would decline 20 to 35 percent, cooling the surface by 3.6 to 9 degrees Fahrenheit (2 to 5 degrees Celsius) and reducing precipitation by 15 to 30 percent.

Worldwide food shortages would follow, with the effects persisting up to a decade.

"I hope our work will make people realize you can't use nuclear weapons, they are weapons of mass genocide," Robock told AFP, adding the paper lent more evidence to support the 2017 UN Treaty on the Prohibition of Nuclear Weapons.

"Two countries with smaller numbers of nuclear weapons on the other side of the world still threatens the planet, so it's not something we can ignore."